Disable workspace change gestures when workspaces overview is open

Without animation between workspaces, the behavior is a bit jarring.
Disable for now until we have a better solution.
This commit is contained in:
Ian Douglas Scott 2024-07-12 18:30:41 -07:00 committed by Victoria Brekenfeld
parent 9c65476091
commit 7acfa10ba0

View file

@ -18,7 +18,7 @@ use crate::{
},
FocusResult, InvalidWorkspaceIndex, MoveResult, SeatExt, Trigger, WorkspaceDelta,
},
utils::prelude::*,
utils::{prelude::*, quirks::workspace_overview_is_open},
wayland::{
handlers::{screencopy::SessionHolder, xdg_activation::ActivationContext},
protocols::{
@ -999,7 +999,7 @@ impl State {
.cloned();
if let Some(seat) = maybe_seat {
self.common.idle_notifier_state.notify_activity(&seat);
if event.fingers() >= 3 {
if event.fingers() >= 3 && !workspace_overview_is_open(&seat.active_output()) {
self.common.gesture_state = Some(GestureState::new(event.fingers()));
} else {
let serial = SERIAL_COUNTER.next_serial();