aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--matchbox/core/mb-wm-client.c5
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 74f6624..9719d91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-22 Tomas Frydrych <tf@o-hand.com>
+
+ * /matchbox/core/mb-wm-client.c:
+ (mb_wm_client_shutdown):
+ Fixed for clients that do not have _NET_WM_PID set.
+
2008-05-20 Tomas Frydrych <tf@o-hand.com>
* matchbox/comp-mgr/mb-wm-comp-mgr-clutter.c:
diff --git a/matchbox/core/mb-wm-client.c b/matchbox/core/mb-wm-client.c
index 698ad57..a08e775 100644
--- a/matchbox/core/mb-wm-client.c
+++ b/matchbox/core/mb-wm-client.c
@@ -784,10 +784,7 @@ mb_wm_client_shutdown (MBWindowManagerClient *client)
const char *machine = win->machine;
pid_t pid = win->pid;
- if (!machine || !pid)
- return;
-
- if (gethostname (buf, sizeof(buf)-1) == 0)
+ if (machine && pid && (gethostname (buf, sizeof(buf)-1) == 0))
{
if (!strcmp (buf, machine))
{