aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-11-26 23:57:33 +0100
committerFurkan Sahin <furkan-dev@proton.me>2018-11-26 23:57:33 +0100
commitfb2e6df6215fbcca3fcca1195eb24821ef3389af (patch)
tree3b45b771c4a0ff205de5431f043ad8b0298ba499 /include
parent12e7e5c5b3a5d15f2cce95fa3a6b38f3ce416db9 (diff)
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')
-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 {
struct wl_listener surface_destroy;
};
+struct sway_subsurface {
+ struct sway_view_child child;
+
+ struct wl_listener destroy;
+};
+
struct sway_xdg_popup_v6 {
struct sway_view_child child;