reset input_blocked after reconnection

This commit is contained in:
rustdesk 2022-02-01 23:43:42 +08:00
parent 39ea73657d
commit 9c6715f95e
2 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,6 @@ function stateChanged() {
var header;
var old_window_state = View.WINDOW_SHOWN;
var input_blocked;
class Header: Reactor.Component {
function this() {

View File

@ -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();
}