diff options
author | Christian Beier <dontmind@freeshell.org> | 2010-01-07 16:06:59 +0100 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2010-01-07 18:54:14 +0100 |
commit | 6220f13003a0d73d7659bd77fbe29abefa49969f (patch) | |
tree | 25339ff7e0df5eb64834119f951ff244c4f51e1a /vncterm/LinuxVNC.c | |
parent | 5cbe612618c13db021e2b1bdbb9559fdad755e39 (diff) | |
download | libtdevnc-6220f13003a0d73d7659bd77fbe29abefa49969f.tar.gz libtdevnc-6220f13003a0d73d7659bd77fbe29abefa49969f.zip |
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 <dontmind@freeshell.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'vncterm/LinuxVNC.c')
-rw-r--r-- | vncterm/LinuxVNC.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |