From 50f4275298f2ece3de2a0de77b86414b4a0c5c91 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Wed, 13 Sep 2017 09:19:10 -0400 Subject: implement xdg-toplevel state properties --- include/wlr/types/wlr_xdg_shell_v6.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_xdg_shell_v6.h b/include/wlr/types/wlr_xdg_shell_v6.h index 0a060444..890f404f 100644 --- a/include/wlr/types/wlr_xdg_shell_v6.h +++ b/include/wlr/types/wlr_xdg_shell_v6.h @@ -17,11 +17,30 @@ enum wlr_xdg_surface_v6_role { WLR_XDG_SURFACE_V6_ROLE_POPUP, }; +struct wlr_xdg_toplevel_v6_state { + bool maximized; + bool fullscreen; + bool resizing; + bool activated; + + uint32_t max_width; + uint32_t max_height; + + uint32_t min_width; + uint32_t min_height; +}; + +struct wlr_xdg_toplevel_v6 { + struct wlr_xdg_toplevel_v6_state next; + struct wlr_xdg_toplevel_v6_state current; +}; + struct wlr_xdg_surface_v6 { struct wl_resource *resource; struct wlr_surface *surface; struct wl_list link; enum wlr_xdg_surface_v6_role role; + struct wlr_xdg_toplevel_v6 *toplevel_state; char *title; char *app_id; -- cgit v1.2.3