tree: don't attach container node to parent during construction
This commit is contained in:
parent
7f37e107af
commit
0ab9ec3b75
4 changed files with 31 additions and 35 deletions
|
|
@ -574,7 +574,7 @@ impl WlSeatGlobal {
|
|||
_ => return,
|
||||
};
|
||||
if let Some(pn) = pn.node_into_containing_node() {
|
||||
let cn = ContainerNode::new(&self.state, &ws, pn.clone(), tl.clone(), axis);
|
||||
let cn = ContainerNode::new(&self.state, &ws, tl.clone(), axis);
|
||||
pn.cnode_replace_child(tl.tl_as_node(), cn);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue