diff options
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>(), |
