window-list: Initialize preview visibility

Otherwise we can end up showing window previews in the workspace
thumbnail that shouldn't be visible, if none of the properties we
track for updates changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/280>
This commit is contained in:
Florian Müllner
2023-09-29 21:35:33 +02:00
parent b9d2a445b2
commit f576f1b1b6

View File

@@ -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);