GUACAMOLE-1595: Ensure all mouse buttons are initially released when terminal starts.

This commit is contained in:
Michael Jumper 2022-05-03 00:20:08 +00:00
parent a175a3d902
commit df4e5c6fdf

View File

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