diff options
Diffstat (limited to 'include/sway/layers.h')
-rw-r--r-- | include/sway/layers.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/sway/layers.h b/include/sway/layers.h new file mode 100644 index 00000000..ee47c5ad --- /dev/null +++ b/include/sway/layers.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef _SWAY_LAYERS_H | ||
2 | #define _SWAY_LAYERS_H | ||
3 | #include <stdbool.h> | ||
4 | #include <wlr/types/wlr_box.h> | ||
5 | #include <wlr/types/wlr_surface.h> | ||
6 | #include <wlr/types/wlr_layer_shell.h> | ||
7 | |||
8 | struct sway_layer_surface { | ||
9 | struct wlr_layer_surface *layer_surface; | ||
10 | struct wl_list link; | ||
11 | |||
12 | struct wl_listener destroy; | ||
13 | struct wl_listener map; | ||
14 | struct wl_listener unmap; | ||
15 | struct wl_listener surface_commit; | ||
16 | struct wl_listener output_destroy; | ||
17 | |||
18 | bool configured; | ||
19 | struct wlr_box geo; | ||
20 | }; | ||
21 | |||
22 | struct sway_output; | ||
23 | void arrange_layers(struct sway_output *output); | ||
24 | |||
25 | #endif | ||