diff --git a/src/component/main.vue b/src/component/main.vue index 7908f50f..323519ea 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -9,7 +9,7 @@ :isControling="controlling" :scrollSensitivity="state.control.scroll.sensitivity" :scrollInvert="state.control.scroll.inverse" - :implicitControl="true" + :implicitControl="state.control.implicit_hosting" @implicit-control-request="websocket.send('control/request')" @implicit-control-release="websocket.send('control/release')" /> @@ -98,6 +98,7 @@ }, clipboard: null, host_id: null, + implicit_hosting: false, }, screen: { size: { diff --git a/src/component/types/messages.ts b/src/component/types/messages.ts index b766986f..9e781fbb 100644 --- a/src/component/types/messages.ts +++ b/src/component/types/messages.ts @@ -13,6 +13,7 @@ export interface SystemInit { control_host: ControlHost screen_size: ScreenSize members: Record + implicit_hosting: boolean } export interface SystemAdmin { diff --git a/src/component/types/state.ts b/src/component/types/state.ts index 80460b66..808ef1dd 100644 --- a/src/component/types/state.ts +++ b/src/component/types/state.ts @@ -37,6 +37,7 @@ export interface Control { scroll: Scroll clipboard: Clipboard | null host_id: string | null + implicit_hosting: boolean } export interface Scroll {