diff options
author | emersion <contact@emersion.fr> | 2018-11-26 23:57:33 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-11-27 11:46:30 +0100 |
commit | fc79b7c2d27af881c57d193667d1efb2f7f90eb5 (patch) | |
tree | 3b45b771c4a0ff205de5431f043ad8b0298ba499 /include/sway/tree | |
parent | dbf8e1cead12ba775a9a702140576c5f7406c380 (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/sway/tree')
-rw-r--r-- | include/sway/tree/view.h | 6 |
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; |