aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/tree/view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index d77bd07d..e8e8580a 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -1029,6 +1029,9 @@ void view_child_destroy(struct sway_view_child *child) {
1029 wl_list_for_each_safe(subchild, tmpchild, &child->children, link) { 1029 wl_list_for_each_safe(subchild, tmpchild, &child->children, link) {
1030 wl_list_remove(&subchild->link); 1030 wl_list_remove(&subchild->link);
1031 subchild->parent = NULL; 1031 subchild->parent = NULL;
1032 // The subchild lost its parent link, so it cannot see that the parent
1033 // is unmapped. Unmap it directly.
1034 subchild->mapped = false;
1032 } 1035 }
1033 1036
1034 wl_list_remove(&child->surface_commit.link); 1037 wl_list_remove(&child->surface_commit.link);