[gnome-shell-extensions] window-list: Fix initial visibility



commit 6ee4205f1e60858b20a1f9492b34800265841a5c
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Aug 26 23:26:36 2021 +0200

    window-list: Fix initial visibility
    
    Mutter uses an undefined initial in-fullscreen state, so it will
    always emit the `in-fullscreen-changed` signal when it determines
    the actual initial state.
    
    This didn't use to be an issue when the shell started in the session,
    but now results in the window list ending up visible in the overview
    on startup.
    
    Work around this by hiding ourselves again when the in-fullscreen
    state changes in the overview.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/185>

 extensions/window-list/extension.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 56bb829..599b64b 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -785,6 +785,9 @@ class WindowList extends St.Widget {
 
         this._fullscreenChangedId =
             global.display.connect('in-fullscreen-changed', () => {
+                // Work-around for initial change from unknown to !fullscreen
+                if (Main.overview.visible)
+                    this.hide();
                 this._updateKeyboardAnchor();
             });
 


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