Skip to content

Commit 80f8113

Browse files
committed
fix(noOverview): update module to prevent overview from showing at startup
1 parent ac22978 commit 80f8113

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src/modules/noOverview.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,28 @@ import { Module } from '../module.ts';
44

55
/**
66
* NoOverview Module
7-
*
8-
* Automatically hides the GNOME Overview on startup.
9-
* This provides a cleaner desktop experience for users who prefer not to use the overview.
10-
* Note: This module only hides the overview on startup. Users can still access it via hotkeys or gestures.
7+
*
8+
* Prevents the GNOME Overview from showing at startup by temporarily disabling
9+
* `sessionMode.hasOverview`, which causes the startup animation to skip the
10+
* overview transition entirely. Once startup completes, `hasOverview` is restored
11+
* so the overview remains accessible via hotkeys, gestures, and the Activities button.
1112
*/
1213
export class NoOverview extends Module {
1314
override enable(): void {
15+
if (!Main.layoutManager._startingUp) return;
16+
17+
Main.sessionMode.hasOverview = false;
18+
1419
Main.layoutManager.connectObject(
15-
'startup-complete', () => Main.overview.hide(),
20+
'startup-complete', () => {
21+
Main.sessionMode.hasOverview = true;
22+
},
1623
this
1724
);
1825
}
1926

2027
override disable(): void {
28+
Main.sessionMode.hasOverview = true;
2129
Main.layoutManager.disconnectObject(this);
2230
}
2331
}

0 commit comments

Comments
 (0)