summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2010-01-07 16:06:59 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2010-01-07 18:54:14 +0100
commit6220f13003a0d73d7659bd77fbe29abefa49969f (patch)
tree25339ff7e0df5eb64834119f951ff244c4f51e1a
parent5cbe612618c13db021e2b1bdbb9559fdad755e39 (diff)
downloadlibtdevnc-6220f130.tar.gz
libtdevnc-6220f130.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>
-rw-r--r--vncterm/LinuxVNC.c3
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 */