From 1e5fbba64e115957e6c4d32661751aa8bae651f3 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 17 Jul 2014 12:34:57 -0700 Subject: [PATCH] GUAC-763: Do not send mouse during username search either. --- src/protocols/telnet/guac_handlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/telnet/guac_handlers.c b/src/protocols/telnet/guac_handlers.c index 59b91ab3..4b3774cc 100644 --- a/src/protocols/telnet/guac_handlers.c +++ b/src/protocols/telnet/guac_handlers.c @@ -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_terminal* term = client_data->term; - /* Send mouse if not searching for password */ - if (client_data->password_regex == NULL) + /* Send mouse if not searching for password or username */ + if (client_data->password_regex == NULL && client_data->username_regex == NULL) guac_terminal_send_mouse(term, x, y, mask); return 0;