summaryrefslogtreecommitdiffstats
path: root/vncterm/LinuxVNC.c
diff options
context:
space:
mode:
Diffstat (limited to 'vncterm/LinuxVNC.c')
-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 */