From ff896774355b8eb276c274b90720b61238d70d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 10 Jan 2021 12:41:51 +0100 Subject: [PATCH] cursor Image on connect. --- src/component/internal/messages.ts | 3 +++ src/component/types/messages.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/component/internal/messages.ts b/src/component/internal/messages.ts index 46f385fe..8483c3cf 100644 --- a/src/component/internal/messages.ts +++ b/src/component/internal/messages.ts @@ -56,6 +56,9 @@ export class NekoMessages extends EventEmitter { this[EVENT.SCREEN_UPDATED](conf.screen_size) this[EVENT.CONTROL_HOST](conf.control_host) + if (conf.cursor_image) { + this[EVENT.CURSOR_IMAGE](conf.cursor_image) + } } protected [EVENT.SYSTEM_ADMIN]({ screen_sizes_list, broadcast_status }: message.SystemAdmin) { diff --git a/src/component/types/messages.ts b/src/component/types/messages.ts index c94de28c..528d8b68 100644 --- a/src/component/types/messages.ts +++ b/src/component/types/messages.ts @@ -14,6 +14,7 @@ export interface SystemInit { screen_size: ScreenSize members: Record implicit_hosting: boolean + cursor_image: CursorImage | null } export interface SystemAdmin {