mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
backend/x11: Implement a few useful window properties
It is currently impossible to tell if an X11 window is created by wlroots, or what process / client it belongs to. The following properties are now added to the window: * WM_CLASS * WM_CLIENT_MACHINE * _NET_WM_PID Sample xprop output: WM_CLASS(STRING) = "X11-1", "wlroots" WM_CLIENT_MACHINE(STRING) = "My-Desktop" _NET_WM_PID(CARDINAL) = 3629306
This commit is contained in:
parent
47fb00f66d
commit
727d407f3d
3 changed files with 35 additions and 0 deletions
|
|
@ -96,6 +96,9 @@ struct wlr_x11_backend {
|
|||
xcb_atom_t net_wm_name;
|
||||
xcb_atom_t utf8_string;
|
||||
xcb_atom_t variable_refresh;
|
||||
xcb_atom_t net_wm_pid;
|
||||
xcb_atom_t wm_client_machine;
|
||||
xcb_atom_t wm_class;
|
||||
} atoms;
|
||||
|
||||
// The time we last received an event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue