diff options
Diffstat (limited to 'include/sway/layers.h')
-rw-r--r-- | include/sway/layers.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/sway/layers.h b/include/sway/layers.h index 457634c2..f8508493 100644 --- a/include/sway/layers.h +++ b/include/sway/layers.h | |||
@@ -1,8 +1,7 @@ | |||
1 | #ifndef _SWAY_LAYERS_H | 1 | #ifndef _SWAY_LAYERS_H |
2 | #define _SWAY_LAYERS_H | 2 | #define _SWAY_LAYERS_H |
3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
4 | #include <wlr/types/wlr_box.h> | 4 | #include <wlr/types/wlr_compositor.h> |
5 | #include <wlr/types/wlr_surface.h> | ||
6 | #include <wlr/types/wlr_layer_shell_v1.h> | 5 | #include <wlr/types/wlr_layer_shell_v1.h> |
7 | 6 | ||
8 | enum layer_parent { | 7 | enum layer_parent { |
@@ -23,7 +22,11 @@ struct sway_layer_surface { | |||
23 | struct wl_listener new_subsurface; | 22 | struct wl_listener new_subsurface; |
24 | 23 | ||
25 | struct wlr_box geo; | 24 | struct wlr_box geo; |
25 | bool mapped; | ||
26 | struct wlr_box extent; | ||
26 | enum zwlr_layer_shell_v1_layer layer; | 27 | enum zwlr_layer_shell_v1_layer layer; |
28 | |||
29 | struct wl_list subsurfaces; | ||
27 | }; | 30 | }; |
28 | 31 | ||
29 | struct sway_layer_popup { | 32 | struct sway_layer_popup { |
@@ -43,6 +46,7 @@ struct sway_layer_popup { | |||
43 | struct sway_layer_subsurface { | 46 | struct sway_layer_subsurface { |
44 | struct wlr_subsurface *wlr_subsurface; | 47 | struct wlr_subsurface *wlr_subsurface; |
45 | struct sway_layer_surface *layer_surface; | 48 | struct sway_layer_surface *layer_surface; |
49 | struct wl_list link; | ||
46 | 50 | ||
47 | struct wl_listener map; | 51 | struct wl_listener map; |
48 | struct wl_listener unmap; | 52 | struct wl_listener unmap; |