summaryrefslogtreecommitdiff
path: root/src/core/window-props.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/window-props.c')
-rw-r--r--src/core/window-props.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/window-props.c b/src/core/window-props.c
index e1275817..f98235be 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -311,12 +311,12 @@ get_local_pid (MetaWindow *window)
spec.client = window->xwindow;
spec.mask = XRES_CLIENT_ID_PID_MASK;
- if (!XResQueryClientIds (window->display->xdisplay,
+ if (XResQueryClientIds (window->display->xdisplay,
1,
&spec,
&num_ids,
- &client_ids))
- return pid;
+ &client_ids) != Success)
+ return pid;
for (i = 0; i < num_ids; i++)
{