shell: Lift next_focus to mix-and-match sticky and floating windows

This commit is contained in:
Victoria Brekenfeld 2023-12-22 15:48:35 +00:00 committed by Victoria Brekenfeld
parent a829978ce9
commit 35264ca4a6
3 changed files with 150 additions and 31 deletions

View file

@ -1947,16 +1947,9 @@ impl State {
}
}
Action::Focus(focus) => {
let current_output = seat.active_output();
let overview = self.common.shell.overview_mode().0;
let workspace = self.common.shell.active_space_mut(&current_output);
let result = workspace.next_focus(
let result = self.common.shell.next_focus(
focus,
seat,
match overview {
OverviewMode::Started(Trigger::KeyboardSwap(_, desc), _) => Some(desc),
_ => None,
},
);
match result {