autocommit 2022-05-02 00:00:45 CEST
This commit is contained in:
parent
04580c4aeb
commit
552c8a9950
8 changed files with 155 additions and 43 deletions
12
src/state.rs
12
src/state.rs
|
|
@ -241,15 +241,17 @@ impl State {
|
|||
|
||||
pub fn map_tiled_on(self: &Rc<Self>, node: Rc<dyn ToplevelNode>, ws: &Rc<WorkspaceNode>) {
|
||||
if let Some(c) = ws.container.get() {
|
||||
let la = c.tl_last_active_child();
|
||||
let la = c.clone().tl_last_active_child();
|
||||
let lap = la
|
||||
.tl_data()
|
||||
.parent
|
||||
.get()
|
||||
.unwrap()
|
||||
.node_into_container()
|
||||
.unwrap();
|
||||
lap.add_child_after(la.tl_as_node(), node);
|
||||
.and_then(|n| n.node_into_container());
|
||||
if let Some(lap) = lap {
|
||||
lap.add_child_after(la.tl_as_node(), node);
|
||||
} else {
|
||||
c.append_child(node);
|
||||
}
|
||||
} else {
|
||||
let container =
|
||||
ContainerNode::new(self, &ws, ws.clone(), node, ContainerSplit::Horizontal);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue