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:
parent
9c65476091
commit
7acfa10ba0
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ use crate::{
|
||||||
},
|
},
|
||||||
FocusResult, InvalidWorkspaceIndex, MoveResult, SeatExt, Trigger, WorkspaceDelta,
|
FocusResult, InvalidWorkspaceIndex, MoveResult, SeatExt, Trigger, WorkspaceDelta,
|
||||||
},
|
},
|
||||||
utils::prelude::*,
|
utils::{prelude::*, quirks::workspace_overview_is_open},
|
||||||
wayland::{
|
wayland::{
|
||||||
handlers::{screencopy::SessionHolder, xdg_activation::ActivationContext},
|
handlers::{screencopy::SessionHolder, xdg_activation::ActivationContext},
|
||||||
protocols::{
|
protocols::{
|
||||||
|
|
@ -999,7 +999,7 @@ impl State {
|
||||||
.cloned();
|
.cloned();
|
||||||
if let Some(seat) = maybe_seat {
|
if let Some(seat) = maybe_seat {
|
||||||
self.common.idle_notifier_state.notify_activity(&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()));
|
self.common.gesture_state = Some(GestureState::new(event.fingers()));
|
||||||
} else {
|
} else {
|
||||||
let serial = SERIAL_COUNTER.next_serial();
|
let serial = SERIAL_COUNTER.next_serial();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue