From 7acfa10ba0923e8c3ea6825401033f4d7c0a1c28 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Fri, 12 Jul 2024 18:30:41 -0700 Subject: [PATCH] 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. --- src/input/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/mod.rs b/src/input/mod.rs index bc4f4b46..3fc0a7e1 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -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();