add inactive cursors to member profile.

This commit is contained in:
Miroslav Šedivý 2021-11-03 23:49:21 +01:00
parent 54bcbd6333
commit b621c685c1
3 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<video v-show="!screencast" ref="video" :autoplay="autoplay" :muted="autoplay" playsinline />
<neko-screencast v-show="screencast" :enabled="screencast" :api="api.room" />
<neko-cursors
v-if="state.cursors.enabled"
v-if="state.cursors.enabled && state.sessions[state.session_id].profile.can_see_inactive_cursors"
:sessions="state.sessions"
:sessionId="state.session_id"
:screenSize="state.screen.size"
@ -25,7 +25,7 @@
"
:cursorDraw="cursorDrawFunction"
:implicitControl="state.control.implicit_hosting && state.sessions[state.session_id].profile.can_host"
:inactiveCursors="state.cursors.enabled"
:inactiveCursors="state.cursors.enabled && state.sessions[state.session_id].profile.sends_inactive_cursor"
@implicitControlRequest="connection.websocket.send('control/request')"
@implicitControlRelease="connection.websocket.send('control/release')"
@updateKeyboardModifiers="updateKeyboardModifiers($event)"

View File

@ -73,6 +73,8 @@ export interface MemberProfile {
can_watch: boolean
can_host: boolean
can_access_clipboard: boolean
sends_inactive_cursor: boolean
can_see_inactive_cursors: boolean
}
export interface SessionState {

View File

@ -107,6 +107,8 @@ export interface MemberProfile {
can_watch: boolean
can_host: boolean
can_access_clipboard: boolean
sends_inactive_cursor: boolean
can_see_inactive_cursors: boolean
}
export interface SessionState {