shell: Lift toggle_stacking(_focused) to handle sticky windows

This commit is contained in:
Victoria Brekenfeld 2023-12-20 20:48:19 +00:00 committed by Victoria Brekenfeld
parent 807f63bb72
commit a333753c96
4 changed files with 54 additions and 43 deletions

View file

@ -2069,9 +2069,7 @@ impl State {
.update_orientation(Some(orientation), &seat);
}
Action::ToggleStacking => {
let output = seat.active_output();
let workspace = self.common.shell.active_space_mut(&output);
if let Some(new_focus) = workspace.toggle_stacking_focused(seat) {
if let Some(new_focus) = self.common.shell.toggle_stacking_focused(seat) {
Common::set_focus(self, Some(&new_focus), seat, Some(serial));
}
}