summaryrefslogtreecommitdiff
path: root/include/sway/layers.h
diff options
context:
space:
mode:
authorSimon Ser <[email protected]>2021-12-23 12:09:14 +0100
committerSimon Ser <[email protected]>2022-01-09 11:49:53 +0100
commit297a0c9d35703e59b23d8bae59f181c22f52bc68 (patch)
treebf666ec9c1c0e5ef2547e249553b6c6f4a1b4e92 /include/sway/layers.h
parent3ab1c7f15376511d3f76ec8a3c42c3758b8bc2a8 (diff)
Destroy sub-surfaces with parent layer-shell surface
Closes: https://github.com/swaywm/sway/issues/6337 (cherry picked from commit e2b4c573d6506250c77f01512bc07c72996cd363)
Diffstat (limited to 'include/sway/layers.h')
-rw-r--r--include/sway/layers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/layers.h b/include/sway/layers.h
index 224dc5e6..14816861 100644
--- a/include/sway/layers.h
+++ b/include/sway/layers.h
@@ -25,6 +25,8 @@ struct sway_layer_surface {
bool mapped;
struct wlr_box extent;
enum zwlr_layer_shell_v1_layer layer;
+
+ struct wl_list subsurfaces;
};
struct sway_layer_popup {
@@ -44,6 +46,7 @@ struct sway_layer_popup {
struct sway_layer_subsurface {
struct wlr_subsurface *wlr_subsurface;
struct sway_layer_surface *layer_surface;
+ struct wl_list link;
struct wl_listener map;
struct wl_listener unmap;