summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2025-01-07 15:50:31 +0100
committerColomban Wendling <[email protected]>2025-01-07 15:50:31 +0100
commite46f0d4e26e7dd664e6f40cd2eb634f681a37394 (patch)
treea9d451fce83bba211954540f19728790c5a1ba04
parentfeec46837ff27dc3ec2e3b98c6b2a9537b631c54 (diff)
downloadmarco-e46f0d4e26e7dd664e6f40cd2eb634f681a37394.tar.bz2
marco-e46f0d4e26e7dd664e6f40cd2eb634f681a37394.tar.xz
window-props: Fix check for XResQueryClientIds() success
X's Success return value is 0, not a boolean, so the check was effectively inverted.
-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++)
{