Do not start selection until mouse moves.

This commit is contained in:
Michael Jumper 2013-05-15 12:08:05 -07:00
parent b5e3c2e721
commit 337d79721e

View File

@ -206,8 +206,9 @@ int ssh_guac_client_mouse_handler(guac_client* client, int x, int y, int mask) {
pthread_mutex_unlock(&(term->lock)); pthread_mutex_unlock(&(term->lock));
} }
/* Otherwise, if mouse button pressed, start selection */ /* Otherwise, if mouse button pressed AND moved, start selection */
else if (pressed_mask & GUAC_CLIENT_MOUSE_LEFT) { else if (!(pressed_mask & GUAC_CLIENT_MOUSE_LEFT) &&
mask & GUAC_CLIENT_MOUSE_LEFT) {
pthread_mutex_lock(&(term->lock)); pthread_mutex_lock(&(term->lock));
guac_terminal_select_start(term, guac_terminal_select_start(term,