[gnome-shell/wip/jimmac/dash-icon-spacing: 48/72] layout: Show overview in window picker state on startup




commit 6ca31751f42aaeb05aea68990dba012f6c17b3f2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Sep 28 14:43:17 2020 -0300

    layout: Show overview in window picker state on startup
    
    Start GNOME Shell with the overview visible and in window picker
    state.

 js/ui/layout.js       | 5 +++++
 js/ui/viewSelector.js | 1 -
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index b082ec80b0..f597c78ffd 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -676,6 +676,11 @@ var LayoutManager = GObject.registerClass({
             global.window_group.set_clip(monitor.x, monitor.y, monitor.width, monitor.height);
 
             await this._updateBackgrounds();
+
+            if (Main.sessionMode.hasOverview) {
+                this.showOverview();
+                Main.overview.show();
+            }
         }
 
         this.emit('startup-prepared');
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index b1ddf6ad92..63b2f9f581 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -120,7 +120,6 @@ var ViewSelector = GObject.registerClass({
         super._init({
             name: 'viewSelector',
             x_expand: true,
-            visible: false,
         });
 
         this._showAppsButton = showAppsButton;


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