From eacc55334f06c9f7eacfc6b07207fe940e11acfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 16 Dec 2022 12:09:00 +0100 Subject: [PATCH] appDisplay: Disable overshoot gesture in multi-monitor setups The "bump against monitor edge" thing can't work when there's a monitor adjacent to the current one, so just disable the gesture in case there's more than a single monitor. Part-of: --- js/ui/appDisplay.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index bb2cb5922..343f6fd81 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -868,6 +868,11 @@ var BaseAppView = GObject.registerClass({ } _dragMaybeSwitchPageImmediately(dragEvent) { + // When there's an adjacent monitor, this gesture conflicts with + // dragging to the adjacent monitor, so disable in multi-monitor setups + if (Main.layoutManager.monitors.length > 1) + return false; + // Already animating if (this._adjustment.get_transition('value') !== null) return false;