summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorJoakim Tjernlund <[email protected]>2022-12-29 14:51:57 +0100
committerLuke from DC <[email protected]>2023-01-14 19:04:54 +0000
commitdcd5d21e4c53f1670b33cec78c96bdd3da87037d (patch)
tree1f29d13dab7225dc50a33cd01d14e02447b6678b /src/core
parent81ca7129c159bdae1d9ae9a0cd4e196a8354e7ce (diff)
downloadmarco-dcd5d21e4c53f1670b33cec78c96bdd3da87037d.tar.bz2
marco-dcd5d21e4c53f1670b33cec78c96bdd3da87037d.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/core')
-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 b27809ab..06df9e66 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;