From 0893789b34419a944e5b44e83ea52766bbb3db97 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 10 Jul 2020 10:41:09 -0300 Subject: [PATCH] workspacesView: Update visibily when gesture drag begins When dragging the workspaces through the swipe gesture, all workspaces must be visible. WorkspacesView's _updateVisibility() method special-cases this and ensures that. However, this method is only called when (1) going to the active workspace, and (2) when the gesture ends. That means, if there is any workspace hidden by the time a gesture starts, it is never shown! Call _updateVisibility() on startTouchGesture() as well. Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969 https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1360 --- js/ui/workspacesView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index b16c13437..a757badbb 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -241,6 +241,8 @@ class WorkspacesView extends WorkspacesViewBase { startTouchGesture() { this._gestureActive = true; + + this._updateVisibility(); } endTouchGesture() {