aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-09-13 09:19:10 -0400
committerTony Crisci <tony@dubstepdish.com>2017-09-13 09:19:10 -0400
commit50f4275298f2ece3de2a0de77b86414b4a0c5c91 (patch)
treede64532c9c09f63883823aaf3f746d1988337a84 /include/wlr
parent353629b034654c686d0bf28c765a9e0160672310 (diff)
implement xdg-toplevel state properties
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_xdg_shell_v6.h19
1 files changed, 19 insertions, 0 deletions
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;