Merging upstream version 20231210.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
18ff17dcf8
commit
9657f2cada
273 changed files with 25892 additions and 8304 deletions
32
extensions/45/no-overview/extension.js
Normal file
32
extensions/45/no-overview/extension.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
No overview at start-up
|
||||
GNOME Shell 45+ extension
|
||||
Contributors: @fthx, @fmuellner
|
||||
License: GPL v3
|
||||
*/
|
||||
|
||||
|
||||
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
|
||||
|
||||
export default class NoOverviewExtension {
|
||||
constructor() {
|
||||
this._realHasOverview = Main.sessionMode.hasOverview;
|
||||
}
|
||||
|
||||
enable() {
|
||||
if (!Main.layoutManager._startingUp) {
|
||||
return;
|
||||
}
|
||||
|
||||
Main.sessionMode.hasOverview = false;
|
||||
|
||||
this._startup_complete = Main.layoutManager.connect('startup-complete', () => {
|
||||
Main.sessionMode.hasOverview = this._realHasOverview;
|
||||
});
|
||||
}
|
||||
|
||||
disable() {
|
||||
Main.sessionMode.hasOverview = this._realHasOverview;
|
||||
Main.layoutManager.disconnect(this._startup_complete);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue