summaryrefslogtreecommitdiffstats
path: root/x11vnc/user.c
diff options
context:
space:
mode:
authorrunge <runge>2007-11-13 03:10:34 +0000
committerrunge <runge>2007-11-13 03:10:34 +0000
commit2689647d6c7a9ab9c88faacf5dbc0200e9bc4a24 (patch)
treebacf8e52c94d8f9eb9dc123208c0921a33a88f56 /x11vnc/user.c
parente24cf9491ccf696bc6b1ac36574861a343408cd0 (diff)
downloadlibtdevnc-2689647d6c7a9ab9c88faacf5dbc0200e9bc4a24.tar.gz
libtdevnc-2689647d6c7a9ab9c88faacf5dbc0200e9bc4a24.zip
x11vnc: add clear_locks (Caps_Lock, etc) action.
Diffstat (limited to 'x11vnc/user.c')
-rw-r--r--x11vnc/user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/x11vnc/user.c b/x11vnc/user.c
index 717772d..55098ba 100644
--- a/x11vnc/user.c
+++ b/x11vnc/user.c
@@ -1185,6 +1185,7 @@ void user_supplied_opts(char *opts) {
"skip-display", "skip-auth", "skip-shared",
"scale", "scale_cursor", "sc", "solid", "so", "id",
"clear_mods", "cm", "clear_keys", "ck", "repeat",
+ "clear_all", "ca",
"speeds", "sp", "readtimeout", "rd",
"rotate", "ro",
"geometry", "geom", "ge",
@@ -1272,6 +1273,9 @@ void user_supplied_opts(char *opts) {
} else if (!strcmp(p, "clear_keys") ||
!strcmp(p, "ck")) {
clear_mods = 2;
+ } else if (!strcmp(p, "clear_all") ||
+ !strcmp(p, "ca")) {
+ clear_mods = 3;
} else if (!strcmp(p, "noncache") ||
!strcmp(p, "nc")) {
ncache = 0;