gestures: Cycle through workspaces

This commit is contained in:
Victoria Brekenfeld 2025-11-18 18:21:24 +01:00 committed by Jeremy Soller
parent 1f2863fa18
commit 8624928052
4 changed files with 123 additions and 53 deletions

View file

@ -1056,10 +1056,12 @@ impl State {
}
match gesture_state.action {
Some(SwipeAction::NextWorkspace) | Some(SwipeAction::PrevWorkspace) => {
Some(x @ SwipeAction::NextWorkspace)
| Some(x @ SwipeAction::PrevWorkspace) => {
self.common.shell.write().update_workspace_delta(
&seat.active_output(),
gesture_state.delta,
matches!(x, SwipeAction::NextWorkspace),
)
}
_ => {}