From 6220f13003a0d73d7659bd77fbe29abefa49969f Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Thu, 7 Jan 2010 16:06:59 +0100 Subject: [PATCH] LinuxVNC: Fix for no input possible because of ctrl key being stuck. Issue was reported as Debian bug ##555988, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555988 Signed-off-by: Christian Beier Signed-off-by: Johannes Schindelin --- vncterm/LinuxVNC.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vncterm/LinuxVNC.c b/vncterm/LinuxVNC.c index 5a3c3a3..9b58954 100644 --- a/vncterm/LinuxVNC.c +++ b/vncterm/LinuxVNC.c @@ -62,7 +62,8 @@ void do_key(rfbBool down,rfbKeySym keySym,rfbClientPtr cl) } } } else if(keySym==XK_Control_L || keySym==XK_Control_R) - isControl--; + if(isControl>0) + isControl--; } /* these colours are from linux kernel drivers/char/console.c */