diff options
author | Aleksei Bavshin <alebastr89@gmail.com> | 2021-04-16 19:27:12 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-23 09:55:01 +0200 |
commit | e0f239fa2828318e9eff6b68f7faafecd338914c (patch) | |
tree | b871ac9fffed0a3aebe3a2c73a9aa389675db1d4 /include/xwayland/xwm.h | |
parent | c314920a3d2bcb347d9ae491a678d8349f32ae8d (diff) |
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.
Diffstat (limited to 'include/xwayland/xwm.h')
-rw-r--r-- | include/xwayland/xwm.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |