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
This commit is contained in:
emersion 2018-11-26 23:57:33 +01:00
parent dbf8e1cead
commit fc79b7c2d2
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 41 additions and 4 deletions

View file

@ -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;