xwm: add missing NET_WM_STATE states

https://specifications.freedesktop.org/wm-spec/latest/ar01s05.html#id-1.6.8
This commit is contained in:
Consolatis 2024-11-21 22:49:47 +01:00 committed by Kirill Primak
parent 776f2c4e4d
commit 41e2331843
3 changed files with 194 additions and 3 deletions

View file

@ -178,6 +178,13 @@ struct wlr_xwayland_surface {
bool maximized_vert, maximized_horz;
bool minimized;
bool withdrawn;
bool sticky;
bool shaded;
bool skip_taskbar;
bool skip_pager;
bool above;
bool below;
bool demands_attention;
bool has_alpha;
@ -191,6 +198,13 @@ struct wlr_xwayland_surface {
struct wl_signal request_fullscreen;
struct wl_signal request_activate;
struct wl_signal request_close;
struct wl_signal request_sticky;
struct wl_signal request_shaded;
struct wl_signal request_skip_taskbar;
struct wl_signal request_skip_pager;
struct wl_signal request_above;
struct wl_signal request_below;
struct wl_signal request_demands_attention;
struct wl_signal associate;
struct wl_signal dissociate;
@ -292,6 +306,27 @@ void wlr_xwayland_surface_set_maximized(struct wlr_xwayland_surface *surface,
void wlr_xwayland_surface_set_fullscreen(struct wlr_xwayland_surface *surface,
bool fullscreen);
void wlr_xwayland_surface_set_sticky(
struct wlr_xwayland_surface *surface, bool sticky);
void wlr_xwayland_surface_set_shaded(
struct wlr_xwayland_surface *surface, bool shaded);
void wlr_xwayland_surface_set_skip_taskbar(
struct wlr_xwayland_surface *surface, bool skip_taskbar);
void wlr_xwayland_surface_set_skip_pager(
struct wlr_xwayland_surface *surface, bool skip_pager);
void wlr_xwayland_surface_set_above(
struct wlr_xwayland_surface *surface, bool above);
void wlr_xwayland_surface_set_below(
struct wlr_xwayland_surface *surface, bool below);
void wlr_xwayland_surface_set_demands_attention(
struct wlr_xwayland_surface *surface, bool demands_attention);
void wlr_xwayland_set_seat(struct wlr_xwayland *xwayland,
struct wlr_seat *seat);

View file

@ -48,6 +48,13 @@ enum atom_name {
NET_WM_STATE_MAXIMIZED_VERT,
NET_WM_STATE_MAXIMIZED_HORZ,
NET_WM_STATE_HIDDEN,
NET_WM_STATE_STICKY,
NET_WM_STATE_SHADED,
NET_WM_STATE_SKIP_TASKBAR,
NET_WM_STATE_SKIP_PAGER,
NET_WM_STATE_ABOVE,
NET_WM_STATE_BELOW,
NET_WM_STATE_DEMANDS_ATTENTION,
NET_WM_PING,
WM_CHANGE_STATE,
WM_STATE,