Adding no-overview version 12 [665d0e1].
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
49f91cb49a
commit
17bb55bb06
3 changed files with 715 additions and 0 deletions
38
extensions/no-overview/extension.js
Normal file
38
extensions/no-overview/extension.js
Normal file
|
@ -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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue