[gnome-shell/gbsneto/40-stuff: 47/68] layout: Show overview in window picker state on startup
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/40-stuff: 47/68] layout: Show overview in window picker state on startup
- Date: Wed, 20 Jan 2021 22:41:08 +0000 (UTC)
commit b36f6baf472d8fc18dadd31582ce9f2e7f4f1db5
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]