diff options
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/ipc-event-channel.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/src/shared/ipc-event-channel.ts b/gui/src/shared/ipc-event-channel.ts index 3c4cd55cfb..5cd1d22098 100644 --- a/gui/src/shared/ipc-event-channel.ts +++ b/gui/src/shared/ipc-event-channel.ts @@ -168,6 +168,7 @@ interface ISplitTunnelingHandlers { const LOCALE_CHANGED = 'locale-changed'; const WINDOW_SHAPE_CHANGED = 'window-shape-changed'; +const WINDOW_FOCUS_CHANGED = 'window-focus'; const DAEMON_CONNECTED = 'daemon-connected'; const DAEMON_DISCONNECTED = 'daemon-disconnected'; @@ -244,6 +245,10 @@ export class IpcRendererEventChannel { listen: listen(WINDOW_SHAPE_CHANGED), }; + public static windowFocus: IReceiver<boolean> = { + listen: listen(WINDOW_FOCUS_CHANGED), + }; + public static daemonConnected: IReceiver<void> = { listen: listen(DAEMON_CONNECTED), }; @@ -346,6 +351,10 @@ export class IpcMainEventChannel { notify: sender(WINDOW_SHAPE_CHANGED), }; + public static windowFocus: ISender<boolean> = { + notify: sender(WINDOW_FOCUS_CHANGED), + }; + public static daemonConnected: ISenderVoid = { notify: senderVoid(DAEMON_CONNECTED), }; |
