From dcd5d21e4c53f1670b33cec78c96bdd3da87037d Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Thu, 29 Dec 2022 14:51:57 +0100 Subject: Test if XResQueryClientIds() is available before using it. Needed for X2Go as it does not have XRES 1.2 extension. --- src/core/window-props.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.1