summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoakim Tjernlund <[email protected]>2022-12-29 14:51:57 +0100
committerlukefromdc <[email protected]>2023-01-14 15:32:41 -0500
commit03dff122fda80db045f3c82e6cc272c3f8c5f7e4 (patch)
tree2f8fe04d1d20f2e501c12630556c4fdc36cdaa45 /src
parent2c0d3843a9e77f849f5f02a8b0ca9253a467e13e (diff)
downloadmarco-03dff122fda80db045f3c82e6cc272c3f8c5f7e4.tar.bz2
marco-03dff122fda80db045f3c82e6cc272c3f8c5f7e4.tar.xz
Test if XResQueryClientIds() is available before using it.
Needed for X2Go as it does not have XRES 1.2 extension.
Diffstat (limited to 'src')
-rw-r--r--src/core/window-props.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/window-props.c b/src/core/window-props.c
index 55923e5a..71c9d203 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -305,6 +305,8 @@ get_local_pid (MetaWindow *window)
long i;
pid = -1;
+ if (window->display->have_xres == FALSE)
+ return pid;
spec.client = window->xwindow;
spec.mask = XRES_CLIENT_ID_PID_MASK;