GUAC-763: Do not send mouse during username search either.

This commit is contained in:
Michael Jumper 2014-07-17 12:34:57 -07:00
parent b2c6bc488b
commit 1e5fbba64e

View File

@ -47,8 +47,8 @@ int guac_telnet_client_mouse_handler(guac_client* client, int x, int y, int mask
guac_telnet_client_data* client_data = (guac_telnet_client_data*) client->data; guac_telnet_client_data* client_data = (guac_telnet_client_data*) client->data;
guac_terminal* term = client_data->term; guac_terminal* term = client_data->term;
/* Send mouse if not searching for password */ /* Send mouse if not searching for password or username */
if (client_data->password_regex == NULL) if (client_data->password_regex == NULL && client_data->username_regex == NULL)
guac_terminal_send_mouse(term, x, y, mask); guac_terminal_send_mouse(term, x, y, mask);
return 0; return 0;