1
0
Fork 0
forked from wry/wry

tree: allow moving focus from/to fullscreen windows

This commit is contained in:
Julian Orth 2025-12-02 12:29:53 +01:00
parent 31fb4397cc
commit 0ee76fc09f
3 changed files with 27 additions and 8 deletions

View file

@ -730,8 +730,16 @@ impl WlSeatGlobal {
};
if direction == Direction::Down && tl.node_is_container() {
tl.node_do_focus(self, direction);
} else if let Some(p) = tl.tl_data().parent.get() {
if let Some(c) = p.node_into_container() {
} else {
let data = tl.tl_data();
if data.is_fullscreen.get()
&& let Some(output) = data.output_opt()
&& let Some(target) = self.state.find_output_in_direction(&output, direction)
{
target.take_keyboard_navigation_focus(self, direction);
} else if let Some(p) = data.parent.get()
&& let Some(c) = p.node_into_container()
{
c.move_focus_from_child(self, tl.deref(), direction);
}
}