toplevel: store if ancestor is fullscreen
This commit is contained in:
parent
0253f10dcc
commit
a5e8b39e4f
3 changed files with 42 additions and 2 deletions
|
|
@ -2108,6 +2108,10 @@ impl ContainingNode for ContainerNode {
|
|||
fn cnode_get_float(self: Rc<Self>) -> Option<Rc<FloatNode>> {
|
||||
self.tl_data().float.get()
|
||||
}
|
||||
|
||||
fn cnode_self_or_ancestor_fullscreen(&self) -> bool {
|
||||
self.tl_data().self_or_ancestor_is_fullscreen.get()
|
||||
}
|
||||
}
|
||||
|
||||
impl ToplevelNodeBase for ContainerNode {
|
||||
|
|
@ -2229,6 +2233,12 @@ impl ToplevelNodeBase for ContainerNode {
|
|||
child.node.tl_set_float(float);
|
||||
}
|
||||
}
|
||||
|
||||
fn tl_mark_ancestor_fullscreen_ext(&self, fullscreen: bool) {
|
||||
for child in self.children.iter() {
|
||||
child.node.tl_mark_ancestor_fullscreen(fullscreen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn direction_to_split(dir: Direction) -> (ContainerSplit, bool) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue