1
0
Fork 0
forked from wry/wry

tree: activate nested container when moving toplevel into it

This commit is contained in:
Julian Orth 2024-06-05 20:00:34 +02:00
parent da765998ea
commit 639961b1d4

View file

@ -931,6 +931,11 @@ impl ContainerNode {
if let Some(neighbor) = neighbor {
if let Some(cn) = neighbor.node.clone().node_into_container() {
if cn.cnode_accepts_child(child.tl_as_node()) {
if let Some(mc) = self.mono_child.get() {
if mc.node.node_id() == child.node_id() {
self.activate_child2(&neighbor, true);
}
}
self.cnode_remove_child2(child.tl_as_node(), true);
cn.insert_child(child, direction);
return;