From 95386a14235155e4390253c77ede8877b525b9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 18 Mar 2023 17:54:35 +0100 Subject: [PATCH] workspacesView: Update visibility after updating workspaces When the number of workspaces changes, it is possible that one of the visible (non-active) workspaces is removed, and another invisible workspace moves in its place. Make sure that workspaces are shown as necessary in this case. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6519 Part-of: --- js/ui/workspacesView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 29d1c65f1..22e66f77a 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -118,7 +118,6 @@ class WorkspacesView extends WorkspacesViewBase { global.window_manager.connectObject('switch-workspace', this._activeWorkspaceChanged.bind(this), this); - this._updateVisibility(); } _getFirstFitAllWorkspaceBox(box, spacing, vertical) { @@ -465,6 +464,7 @@ class WorkspacesView extends WorkspacesViewBase { } this._updateWorkspacesState(); + this._updateVisibility(); } _activeWorkspaceChanged(_wm, _from, _to, _direction) {