From e0f239fa2828318e9eff6b68f7faafecd338914c Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Fri, 16 Apr 2021 19:27:12 -0700 Subject: xwayland: query window PIDs via XResQueryClientIds `_NET_WM_PID` is unreliable: it is optional and even if set it may contain PIDs from sandbox namespaces or remote systems. Prefer XRes v1.2 QueryClientIds method which returns PIDs as seen by the Xwayland server. --- include/xwayland/xwm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/xwayland') diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index 587f136b..05d229ae 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -113,6 +113,7 @@ struct wlr_xwm { struct wlr_xwayland_surface *drag_focus; const xcb_query_extension_reply_t *xfixes; + const xcb_query_extension_reply_t *xres; #if HAS_XCB_ERRORS xcb_errors_context_t *errors_context; #endif -- cgit v1.2.3