[gnome-shell/gnome-3-34] overview: Hide the overview on session mode hasOverview changes



commit b7389b328c866997e7d4f6bf1963d114bdf9b93b
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Mon Feb 24 11:19:28 2020 +0100

    overview: Hide the overview on session mode hasOverview changes
    
    If the sessionMode does not allow to show the overview, we should also
    hide an already visible overview.
    
    This fixes a bug where, if the lockscreen was shown while the overview
    was visible, the Ctrl+Alt+Tab popup would allow navigating inside the
    overview because the overview actor is still mapped.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1043

 js/ui/overview.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index e4837c8211..affa390d71 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -199,7 +199,11 @@ var Overview = class {
     }
 
     _sessionUpdated() {
-        this.isDummy = !Main.sessionMode.hasOverview;
+        const { hasOverview } = Main.sessionMode;
+        if (!hasOverview)
+            this.hide();
+
+        this.isDummy = !hasOverview;
         this._createOverview();
     }
 


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