From 2a6a65144c109327153e39c5322bbbb2eaef6c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Wed, 2 Dec 2020 11:24:27 +0100 Subject: [PATCH] introduced ImplicitHosting. --- src/component/main.vue | 3 ++- src/component/types/messages.ts | 1 + src/component/types/state.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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 {