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.
This commit is contained in:
Aleksei Bavshin 2021-04-16 19:27:12 -07:00 committed by Simon Ser
parent c314920a3d
commit e0f239fa28
3 changed files with 65 additions and 0 deletions

View file

@ -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