shell: Don't skip over Group-targets for next_focus

This commit is contained in:
Victoria Brekenfeld 2024-07-03 21:03:36 +02:00
parent 2d0f1cbf2b
commit c933aa1a4f

View file

@ -2555,6 +2555,20 @@ impl Shell {
.elements()
.chain(workspace.mapped())
.find(|e| *e == &elem),
KeyboardFocusTarget::Group { .. } => {
let focus_stack = workspace.focus_stack.get(seat);
let swap_desc = match overview {
OverviewMode::Started(Trigger::KeyboardSwap(_, desc), _) => Some(desc),
_ => None,
};
return workspace.tiling_layer.next_focus(
direction,
seat,
focus_stack.iter(),
swap_desc,
);
}
_ => None,
})
.cloned() else {