aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2021-12-23 12:09:14 +0100
committerLibravatar Ronan Pigott <rpigott@berkeley.edu>2022-01-08 19:07:27 -0700
commite2b4c573d6506250c77f01512bc07c72996cd363 (patch)
tree3c08682501f53da4228927e288873c153033b89e /include
parentcommands/move: Fix crash when pos_y is omitted (diff)
downloadsway-e2b4c573d6506250c77f01512bc07c72996cd363.tar.gz
sway-e2b4c573d6506250c77f01512bc07c72996cd363.tar.zst
sway-e2b4c573d6506250c77f01512bc07c72996cd363.zip
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 {
25 bool mapped; 25 bool mapped;
26 struct wlr_box extent; 26 struct wlr_box extent;
27 enum zwlr_layer_shell_v1_layer layer; 27 enum zwlr_layer_shell_v1_layer layer;
28
29 struct wl_list subsurfaces;
28}; 30};
29 31
30struct sway_layer_popup { 32struct sway_layer_popup {
@@ -44,6 +46,7 @@ struct sway_layer_popup {
44struct sway_layer_subsurface { 46struct sway_layer_subsurface {
45 struct wlr_subsurface *wlr_subsurface; 47 struct wlr_subsurface *wlr_subsurface;
46 struct sway_layer_surface *layer_surface; 48 struct sway_layer_surface *layer_surface;
49 struct wl_list link;
47 50
48 struct wl_listener map; 51 struct wl_listener map;
49 struct wl_listener unmap; 52 struct wl_listener unmap;