From 9c6715f95e71f480c23326a21f0b4094185fc3ce Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 1 Feb 2022 23:43:42 +0800 Subject: [PATCH] reset input_blocked after reconnection --- src/ui/header.tis | 1 - src/ui/remote.tis | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/header.tis b/src/ui/header.tis index c7a6d21c8..de1d76f5c 100644 --- a/src/ui/header.tis +++ b/src/ui/header.tis @@ -59,7 +59,6 @@ function stateChanged() { var header; var old_window_state = View.WINDOW_SHOWN; -var input_blocked; class Header: Reactor.Component { function this() { diff --git a/src/ui/remote.tis b/src/ui/remote.tis index 0afbe13f3..c7d0740ae 100644 --- a/src/ui/remote.tis +++ b/src/ui/remote.tis @@ -1,6 +1,7 @@ var cursor_img = $(img#cursor); is_file_transfer = handler.is_file_transfer(); var is_port_forward = handler.is_port_forward(); +var input_blocked = false; var display_width = 0; var display_height = 0; var display_origin_x = 0; @@ -424,6 +425,7 @@ handler.setPermission = function(name, enabled) { if (name == "keyboard") keyboard_enabled = enabled; if (name == "audio") audio_enabled = enabled; if (name == "clipboard") clipboard_enabled = enabled; + input_blocked = false; header.update(); }