1
0
Fork 0
forked from wry/wry

tree: correctly handle destruction of fullscreen node

This commit is contained in:
Julian Orth 2024-02-17 18:34:06 +01:00
parent 439befcf78
commit d4e9216f46

View file

@ -276,8 +276,7 @@ impl ContainingNode for WorkspaceNode {
}
if let Some(fs) = self.fullscreen.get() {
if fs.tl_as_node().node_id() == child.node_id() {
self.discard_child_flags(&*fs);
self.fullscreen.set(None);
self.remove_fullscreen_node();
return;
}
}