diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-07-23 20:30:43 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-07-23 20:30:43 -0600 |
commit | e8d545a9770a2473db32e0a0bfa757b05d2af4f3 (patch) | |
tree | fa016b4734f5e0f8e54db50928eb298283dd3465 /include/wlr | |
parent | 04e4e06986d1aad35d3ab097f3f473b799a576e2 (diff) | |
download | wlroots-e8d545a9770a2473db32e0a0bfa757b05d2af4f3.tar.xz |
xdg-shell: add support for v6
This adds the suspended toplevel state
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_xdg_shell.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h index ac2e097d..9cae226c 100644 --- a/include/wlr/types/wlr_xdg_shell.h +++ b/include/wlr/types/wlr_xdg_shell.h @@ -127,7 +127,7 @@ enum wlr_xdg_surface_role { }; struct wlr_xdg_toplevel_state { - bool maximized, fullscreen, resizing, activated; + bool maximized, fullscreen, resizing, activated, suspended; uint32_t tiled; // enum wlr_edges int32_t width, height; int32_t max_width, max_height; @@ -148,7 +148,7 @@ enum wlr_xdg_toplevel_configure_field { struct wlr_xdg_toplevel_configure { uint32_t fields; // enum wlr_xdg_toplevel_configure_field - bool maximized, fullscreen, resizing, activated; + bool maximized, fullscreen, resizing, activated, suspended; uint32_t tiled; // enum wlr_edges int32_t width, height; struct { @@ -384,6 +384,13 @@ uint32_t wlr_xdg_toplevel_set_wm_capabilities(struct wlr_xdg_toplevel *toplevel, uint32_t caps); /** + * Request that this toplevel consider itself suspended or not + * suspended. Returns the associated configure serial. + */ +uint32_t wlr_xdg_toplevel_set_suspended(struct wlr_xdg_toplevel *toplevel, + bool suspended); + +/** * Request that this toplevel closes. */ void wlr_xdg_toplevel_send_close(struct wlr_xdg_toplevel *toplevel); |