[gnome-shell/wip/exalm/gestures: 71/82] workspacesView: Update position when n-workspaces changes



commit 16c7bd432282ccb88c2de10e53bc042a1df65b3d
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Oct 15 12:22:53 2019 +0500

    workspacesView: Update position when n-workspaces changes
    
    Avoid showing wrong workspace after a workspace above the active one is
    removed.

 js/ui/workspacesView.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 19076df0b1..dd20134b70 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -435,6 +435,8 @@ var WorkspacesDisplay = class {
 
         workspaceManager.connect('workspaces-reordered',
                                  this._workspacesReordered.bind(this));
+        workspaceManager.connect('notify::n-workspaces',
+                                 this._activeWorkspaceChanged.bind(this));
 
         let clickAction = new Clutter.ClickAction();
         clickAction.connect('clicked', action => {


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