-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable rounded corners effect when gnome-shell is ready
Closes #41 When gnome-shell is starting up, there is no windows to be added rounded corners because `global.get_window_actors()` return a empty array. After connect 'startup-complete' signal of 'imports.ui.Main.layoutManger', it will ensure `global.get_window_actors()` will return all window actors for this extensions. Ref: https://github.com/aunetx/blur-my-shell/blob/21d4bbde15acf7c3bf348f7375a12f7b14c3ab6f/src/extension.js#L87
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { LookingGlass } from "./lookingGlass"; | ||
import * as GObject from '@gi/GObject' | ||
|
||
export const createLookingGlass: () => LookingGlass; | ||
|
||
export const sessionMode = { | ||
isLocked: boolean, | ||
isGreeter: boolean | ||
} | ||
} | ||
|
||
declare const layoutManager: { | ||
_startingUp: boolean, | ||
connect (_: 'startup-complete', cb: () => void) | ||
} & GObject.Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters