From 7a57528bd7940e68c404d15d398f88730821cec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 4 Mar 2021 08:14:03 +0100 Subject: [PATCH] workspaceThumbnail: Update visibility when showing the overview There's currently a bug that we continue showing the workspace minimap when the number of workspaces changes back to 1 during the session (ie. outside the overview). Fix that by also updating the workspaceThumbnails visibility when entering the overview. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3819 Part-of: --- js/ui/workspaceThumbnail.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index 79c8df224..cf03756a5 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -1018,6 +1018,8 @@ var ThumbnailsBox = GObject.registerClass({ this._stateCounts[ThumbnailState[key]] = 0; this.addThumbnails(0, workspaceManager.n_workspaces); + + this._updateShouldShow(); } _destroyThumbnails() {