diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-09-13 13:33:54 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-09-13 13:33:54 +0200 |
| commit | 343fd4ff64150920f14de07c66385f5bb3fff9ed (patch) | |
| tree | 00cf12cabe0545acec7d9f457d8cdd30ffd2888f /gui/src/shared | |
| parent | 8c7653b4f16d48d39154b149f9c49a0be5209caa (diff) | |
| parent | 6ab3a737364bfa5e593581d968081c5b86bdb372 (diff) | |
| download | mullvadvpn-343fd4ff64150920f14de07c66385f5bb3fff9ed.tar.xz mullvadvpn-343fd4ff64150920f14de07c66385f5bb3fff9ed.zip | |
Merge branch 'detect-macos-scrollbar-visibility'
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/ipc-schema.ts | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts index a20213f424..cd39ac8c8a 100644 --- a/gui/src/shared/ipc-schema.ts +++ b/gui/src/shared/ipc-schema.ts @@ -39,6 +39,12 @@ export interface IRelayListPair { export type LaunchApplicationResult = { success: true } | { error: string }; +export enum MacOsScrollbarVisibility { + always, + whenScrolling, + automatic, +} + export interface IAppStateSnapshot { isConnected: boolean; autoStart: boolean; @@ -53,6 +59,7 @@ export interface IAppStateSnapshot { wireguardPublicKey?: IWireguardPublicKey; translations: ITranslations; windowsSplitTunnelingApplications?: IApplication[]; + macOsScrollbarVisibility?: MacOsScrollbarVisibility; } // The different types of requests are: @@ -98,11 +105,10 @@ export const ipcSchema = { state: { get: invokeSync<void, IAppStateSnapshot>(), }, - windowShape: { - '': notifyRenderer<IWindowShapeParameters>(), - }, - windowFocus: { - '': notifyRenderer<boolean>(), + window: { + shape: notifyRenderer<IWindowShapeParameters>(), + focus: notifyRenderer<boolean>(), + macOsScrollbarVisibility: notifyRenderer<MacOsScrollbarVisibility>(), }, navigation: { reset: notifyRenderer<void>(), |
