aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-11-26 23:57:33 +0100
committerLibravatar emersion <contact@emersion.fr>2018-11-27 11:46:30 +0100
commitfc79b7c2d27af881c57d193667d1efb2f7f90eb5 (patch)
tree3b45b771c4a0ff205de5431f043ad8b0298ba499 /include/sway/tree/view.h
parentMerge pull request #3175 from emersion/rename-gtk-primary-selection (diff)
downloadsway-fc79b7c2d27af881c57d193667d1efb2f7f90eb5.tar.gz
sway-fc79b7c2d27af881c57d193667d1efb2f7f90eb5.tar.zst
sway-fc79b7c2d27af881c57d193667d1efb2f7f90eb5.zip
Handle destroyed subsurfaces
Damage subsurfaces when they are destroyed. Since subsurfaces don't have an unmap event we need to do that on destroy. We also don't want to keep a sway_view_child when the wlr_subsurface has been destroyed. Fixes https://github.com/swaywm/sway/issues/3197
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 4716c688..d74f1bc9 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -203,6 +203,12 @@ struct sway_view_child {
203 struct wl_listener surface_destroy; 203 struct wl_listener surface_destroy;
204}; 204};
205 205
206struct sway_subsurface {
207 struct sway_view_child child;
208
209 struct wl_listener destroy;
210};
211
206struct sway_xdg_popup_v6 { 212struct sway_xdg_popup_v6 {
207 struct sway_view_child child; 213 struct sway_view_child child;
208 214