[gnome-shell] workspacesView: Disable mouse drag to switch workspaces



commit ac6337848f4b4c62c4e282ae300b9aa120006231
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Jan 8 17:25:45 2021 -0300

    workspacesView: Disable mouse drag to switch workspaces
    
    During the user research, it was found that users would instinctively
    drag the workspace horizontally but would often, in the process,
    accidentally drag a window.
    
    Disable dragging workspaces using the cursor for now.
    
    Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3742
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1694>

 js/ui/workspacesView.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 717ae0c634..0bc25251c1 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -606,7 +606,9 @@ class WorkspacesDisplay extends St.Widget {
                 this._workspacesReordered.bind(this));
 
         this._swipeTracker = new SwipeTracker.SwipeTracker(
-            Main.layoutManager.overviewGroup, Shell.ActionMode.OVERVIEW);
+            Main.layoutManager.overviewGroup,
+            Shell.ActionMode.OVERVIEW,
+            { allowDrag: false });
         this._swipeTracker.allowLongSwipes = true;
         this._swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
         this._swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]