From 03dff122fda80db045f3c82e6cc272c3f8c5f7e4 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(+) (limited to 'src') 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; -- cgit v1.2.1