1
0
Fork 0
forked from wry/wry

tree: focus float nodes when switching workspaces

This commit is contained in:
Tadeo Kondrak 2024-12-26 11:58:27 -07:00
parent 206a2ed4fc
commit 834eedc4f1
3 changed files with 50 additions and 0 deletions

View file

@ -276,6 +276,14 @@ impl Node for WorkspaceNode {
fs.tl_into_node().node_do_focus(seat, direction);
} else if let Some(container) = self.container.get() {
container.node_do_focus(seat, direction);
} else if let Some(float) = self
.stacked
.rev_iter()
.find_map(|node| (*node).clone().node_into_float())
{
if let Some(child) = float.child.get() {
child.node_do_focus(seat, direction);
}
}
}