mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
view: Mark subchildren as unmapped in view_child_destroy
The subchildren lose their parent association at this point, so they
will not be able to see that the parent is unmapped.
Instead, just set the subchildren to be unmapped directly.
(cherry picked from commit 79e43b19d7)
This commit is contained in:
parent
5734c8809d
commit
0ebbf8d910
1 changed files with 3 additions and 0 deletions
|
|
@ -1029,6 +1029,9 @@ void view_child_destroy(struct sway_view_child *child) {
|
|||
wl_list_for_each_safe(subchild, tmpchild, &child->children, link) {
|
||||
wl_list_remove(&subchild->link);
|
||||
subchild->parent = NULL;
|
||||
// The subchild lost its parent link, so it cannot see that the parent
|
||||
// is unmapped. Unmap it directly.
|
||||
subchild->mapped = false;
|
||||
}
|
||||
|
||||
wl_list_remove(&child->surface_commit.link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue