1
0
Fork 0
forked from wry/wry

tree: don't attach container node to parent during construction

This commit is contained in:
Julian Orth 2024-02-21 13:31:54 +01:00
parent 7f37e107af
commit 0ab9ec3b75
4 changed files with 31 additions and 35 deletions

View file

@ -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);
}
}