diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 16:02:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 16:02:51 +0000 |
commit | 38dd2e23d9e4d0c4e4ccae2e1f261dd19861c331 (patch) | |
tree | ce0a90ded587c944b91104ca6aeaae96cfaa9f7b /extensions/44/no-overview/extension.js | |
parent | Releasing version 20230618. (diff) | |
download | gnome-shell-extensions-extra-38dd2e23d9e4d0c4e4ccae2e1f261dd19861c331.tar.xz gnome-shell-extensions-extra-38dd2e23d9e4d0c4e4ccae2e1f261dd19861c331.zip |
Moving current extensions to subdirectory for GNOME 44 as GNOME Shell 45 is backwards incompatible (see Debian #1052112).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'extensions/44/no-overview/extension.js')
-rw-r--r-- | extensions/44/no-overview/extension.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/extensions/44/no-overview/extension.js b/extensions/44/no-overview/extension.js new file mode 100644 index 0000000..32a9090 --- /dev/null +++ b/extensions/44/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 |