aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-12-23 12:09:14 +0100
committerFurkan Sahin <furkan-dev@proton.me>2021-12-23 12:09:14 +0100
commit0c1851a5c5b9a34b44eeae1e422a37585b07d8c0 (patch)
tree3c08682501f53da4228927e288873c153033b89e /include
parent68bdd7a6c5fab675622af2b508ec6b5be3a8dc5c (diff)
Destroy sub-surfaces with parent layer-shell surface
Closes: https://github.com/swaywm/sway/issues/6337
Diffstat (limited to 'include')
-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;