1
0
Fork 0
forked from wry/wry

container: run tl_destroy when replacing container

This commit is contained in:
Julian Orth 2025-04-28 19:14:12 +02:00
parent 8b9784bb15
commit 0e1868d355

View file

@ -998,6 +998,9 @@ impl ContainerNode {
if let Some(parent) = self.toplevel_data.parent.get() {
if !self.toplevel_data.is_fullscreen.get() && parent.cnode_accepts_child(&*child) {
parent.cnode_replace_child(self.deref(), child.clone());
self.toplevel_data.parent.take();
self.child_nodes.borrow_mut().clear();
self.tl_destroy();
}
}
return;