container: run tl_destroy when replacing container
This commit is contained in:
parent
8b9784bb15
commit
0e1868d355
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue