From df4e5c6fdf247fd06e2fd462f8561cb0a695e411 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 3 May 2022 00:20:08 +0000 Subject: [PATCH] GUACAMOLE-1595: Ensure all mouse buttons are initially released when terminal starts. --- src/terminal/terminal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/terminal/terminal.c b/src/terminal/terminal.c index cb21e93f..434c7d4d 100644 --- a/src/terminal/terminal.c +++ b/src/terminal/terminal.c @@ -485,6 +485,10 @@ guac_terminal* guac_terminal_create(guac_client* client, /* Init terminal */ guac_terminal_reset(term); + /* All mouse buttons are released */ + term->mouse_mask = 0; + + /* All keyboard modifiers are released */ term->mod_alt = term->mod_ctrl = term->mod_shift = 0; @@ -2104,4 +2108,4 @@ void guac_terminal_remove_user(guac_terminal* terminal, guac_user* user) { /* Remove the user from the terminal cursor */ guac_common_cursor_remove_user(terminal->cursor, user); -} \ No newline at end of file +}