[gnome-shell/gbsneto/workspace-fixes-pt1] workspacesView: Update visibily when gesture drag begins



commit 0893789b34419a944e5b44e83ea52766bbb3db97
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Jul 10 10:41:09 2020 -0300

    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 b16c134379..a757badbbf 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() {


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