tree: don't allow fullscreening the root container in a workspace
This commit is contained in:
parent
0ab9ec3b75
commit
8430278264
1 changed files with 4 additions and 0 deletions
|
|
@ -346,6 +346,10 @@ impl ToplevelData {
|
|||
}
|
||||
Some(p) => p,
|
||||
};
|
||||
if parent.node_is_workspace() {
|
||||
log::warn!("Cannot fullscreen root container in a workspace");
|
||||
return;
|
||||
}
|
||||
let placeholder = Rc::new(PlaceholderNode::new_for(state, node.clone()));
|
||||
parent.cnode_replace_child(node.tl_as_node(), placeholder.clone());
|
||||
let mut kb_foci = Default::default();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue