Skip to content

Commit

Permalink
Disable workspace change gestures when workspaces overview is open
Browse files Browse the repository at this point in the history
Without animation between workspaces, the behavior is a bit jarring.
Disable for now until we have a better solution.
  • Loading branch information
ids1024 committed Jul 13, 2024
1 parent 17f59c5 commit 24e5a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::{
FocusResult, InvalidWorkspaceIndex, MoveResult, OverviewMode, ResizeMode, SeatExt, Trigger,
WorkspaceDelta,
},
utils::prelude::*,
utils::{prelude::*, quirks::workspace_overview_is_open},
wayland::{
handlers::{screencopy::SessionHolder, xdg_activation::ActivationContext},
protocols::{
Expand Down Expand Up @@ -1000,7 +1000,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();
Expand Down

0 comments on commit 24e5a15

Please sign in to comment.