diff options
author | emersion <contact@emersion.fr> | 2018-11-27 21:13:08 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-11-27 21:13:08 +0100 |
commit | 1d30b7c0f6068629760e692e594172e9972edf93 (patch) | |
tree | 2eb1edc9d9aefe95848b94ff0a25166023f13323 /sway/tree | |
parent | fc79b7c2d27af881c57d193667d1efb2f7f90eb5 (diff) |
Damage view child when destroyed
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/view.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index c56b96f9..f7af841c 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -713,9 +713,6 @@ static void subsurface_handle_destroy(struct wl_listener *listener, struct sway_subsurface *subsurface = wl_container_of(listener, subsurface, destroy); struct sway_view_child *child = &subsurface->child; - if (child->view->container != NULL) { - view_child_damage(child, true); - } view_child_destroy(child); } @@ -812,6 +809,10 @@ void view_child_init(struct sway_view_child *child, } void view_child_destroy(struct sway_view_child *child) { + if (child->view->container != NULL) { + view_child_damage(child, true); + } + wl_list_remove(&child->surface_commit.link); wl_list_remove(&child->surface_destroy.link); |