From 93741e9e1cd46415480af0e9681b73f155281c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 1 Dec 2023 14:31:34 +0100 Subject: [PATCH] Revert "window-list: Only initialize preview visibility on map" It is not possible to unmap an actor from within the map vfunc, so the fix broke the initial visibility again. This reverts commit 8b7cfff558befbacf6669364f669eba24e71eb98. Part-of: --- extensions/window-list/workspaceIndicator.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/extensions/window-list/workspaceIndicator.js b/extensions/window-list/workspaceIndicator.js index e032675c..099de8a4 100644 --- a/extensions/window-list/workspaceIndicator.js +++ b/extensions/window-list/workspaceIndicator.js @@ -43,6 +43,7 @@ class WindowPreview extends St.Button { }, 'notify::minimized', this._updateVisible.bind(this), this); + this._updateVisible(); global.display.connectObject('notify::focus-window', this._onFocusChanged.bind(this), this); @@ -54,12 +55,6 @@ class WindowPreview extends St.Button { return this._window; } - vfunc_map() { - super.vfunc_map(); - // initialize visibility after being added to the stage - this._updateVisible(); - } - _onFocusChanged() { if (global.display.focus_window === this._window) this.add_style_class_name('active');