summaryrefslogtreecommitdiffstats
path: root/extensions/no-overview/extension.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-05 07:44:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-05 08:57:36 +0000
commit4a62513b17d915afcae80b1adfb1b0cdcf86f748 (patch)
treea21f339a82d742682a1dfbf63d7fe9c43d58a3a2 /extensions/no-overview/extension.js
parentAdding upstream version 20230204. (diff)
downloadgnome-shell-extensions-extra-4a62513b17d915afcae80b1adfb1b0cdcf86f748.tar.xz
gnome-shell-extensions-extra-4a62513b17d915afcae80b1adfb1b0cdcf86f748.zip
Adding upstream version 20230205.upstream/20230205
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'extensions/no-overview/extension.js')
-rw-r--r--extensions/no-overview/extension.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/extensions/no-overview/extension.js b/extensions/no-overview/extension.js
new file mode 100644
index 0000000..32a9090
--- /dev/null
+++ b/extensions/no-overview/extension.js
@@ -0,0 +1,38 @@
+/*
+ No overview at start-up
+ Contributors: @fthx, @fmuellner
+ License: GPL v3
+*/
+
+
+const Main = imports.ui.main;
+
+
+class Extension {
+ constructor() {
+ this._realHasOverview = Main.sessionMode.hasOverview;
+ }
+
+ enable() {
+ if (!Main.layoutManager._startingUp) {
+ return;
+ }
+
+ Main.sessionMode.hasOverview = false;
+ Main.layoutManager.connect('startup-complete', () => {
+ Main.sessionMode.hasOverview = this._realHasOverview
+ });
+ // handle Ubuntu's method
+ if (Main.layoutManager.startInOverview) {
+ Main.layoutManager.startInOverview = false;
+ }
+ }
+
+ disable() {
+ Main.sessionMode.hasOverview = this._realHasOverview;
+ }
+}
+
+function init() {
+ return new Extension();
+} \ No newline at end of file