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.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/window-props.c b/src/core/window-props.c
index b5883ad1..55923e5a 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -309,11 +309,12 @@ get_local_pid (MetaWindow *window)
spec.client = window->xwindow;
spec.mask = XRES_CLIENT_ID_PID_MASK;
- XResQueryClientIds (window->display->xdisplay,
- 1,
- &spec,
- &num_ids,
- &client_ids);
+ if (!XResQueryClientIds (window->display->xdisplay,
+ 1,
+ &spec,
+ &num_ids,
+ &client_ids))
+ return pid;
for (i = 0; i < num_ids; i++)
{