diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/window-props.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/window-props.c b/src/core/window-props.c index 3414a3d9..b27809ab 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++) { |