From 6fa2f4513fbe1422b86afddf55a6cc481c5e2bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 1 Nov 2021 18:38:16 +0100 Subject: [PATCH] add InactiveCursors to ws init. --- internal/types/message/messages.go | 1 + internal/websocket/handler/system.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/types/message/messages.go b/internal/types/message/messages.go index bff58a34..f6f00254 100644 --- a/internal/types/message/messages.go +++ b/internal/types/message/messages.go @@ -20,6 +20,7 @@ type SystemInit struct { ScreenSize ScreenSize `json:"screen_size"` Sessions map[string]SessionData `json:"sessions"` ImplicitHosting bool `json:"implicit_hosting"` + InactiveCursors bool `json:"inactive_cursors"` ScreencastEnabled bool `json:"screencast_enabled"` WebRTC SystemWebRTC `json:"webrtc"` } diff --git a/internal/websocket/handler/system.go b/internal/websocket/handler/system.go index 399453e2..59411779 100644 --- a/internal/websocket/handler/system.go +++ b/internal/websocket/handler/system.go @@ -45,6 +45,7 @@ func (h *MessageHandlerCtx) systemInit(session types.Session) error { ScreenSize: message.ScreenSize(*size), Sessions: sessions, ImplicitHosting: h.sessions.ImplicitHosting(), + InactiveCursors: h.sessions.InactiveCursors(), ScreencastEnabled: h.capture.Screencast().Enabled(), WebRTC: message.SystemWebRTC{ Videos: h.capture.VideoIDs(),