[gtk-vnc-devel] [PATCH] Add missing break to key un-merge code



A break statement is missing from the key event handler, where the 
keypress event of an already pressed key is sent as a key release 
and a key press event.

Without this patch, the effect of the normal auto-repeat is multiplied, 
and if you hold down the backspace key for a long time and then release 
it, you won't be able to press a key before releasing the previously 
pressed key.

Marton Balint
diff -r a8cd8a224a10 src/vncdisplay.c
--- a/src/vncdisplay.c	Mon Feb 25 22:03:00 2008 -0500
+++ b/src/vncdisplay.c	Wed Feb 27 20:06:42 2008 +0100
@@ -606,6 +606,7 @@ static gboolean key_event(GtkWidget *wid
 				gvnc_key_event(priv->gvnc, 0, keyval, key->hardware_keycode);
 				/* Now send our actual ldown event */
 				gvnc_key_event(priv->gvnc, 1, keyval, key->hardware_keycode);
+				break;
 			}
 		}
 	} else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]