add InactiveCursors to ws init.

This commit is contained in:
Miroslav Šedivý 2021-11-01 18:38:16 +01:00
parent 3528766e7f
commit 6fa2f4513f
2 changed files with 2 additions and 0 deletions

View File

@ -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"`
}

View File

@ -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(),