summaryrefslogtreecommitdiffstats
path: root/x11vnc/user.c
diff options
context:
space:
mode:
authorrunge <runge>2007-02-16 19:58:34 +0000
committerrunge <runge>2007-02-16 19:58:34 +0000
commit057fdbb3eb8671886f0f6777e8af3098eaed55ae (patch)
treefacff48daf5e60e3856c69e5020164ed0b8ff82e /x11vnc/user.c
parentf1e8149ae75eb7c0b08d4fde27bd164728cfdf68 (diff)
downloadlibtdevnc-057fdbb3eb8671886f0f6777e8af3098eaed55ae.tar.gz
libtdevnc-057fdbb3eb8671886f0f6777e8af3098eaed55ae.zip
x11vnc: add Files mode to user controlled input. more ultra/tight filexfer tweaks. rfbversion remote control. noncache/nc unixpw user opt.
Diffstat (limited to 'x11vnc/user.c')
-rw-r--r--x11vnc/user.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/x11vnc/user.c b/x11vnc/user.c
index aa06ace..ee82c1f 100644
--- a/x11vnc/user.c
+++ b/x11vnc/user.c
@@ -1113,6 +1113,7 @@ void user_supplied_opts(char *opts) {
"speeds", "sp", "readtimeout", "rd",
"rotate", "ro",
"geometry", "geom", "ge",
+ "noncache", "nc",
NULL
};
@@ -1195,6 +1196,10 @@ void user_supplied_opts(char *opts) {
} else if (!strcmp(p, "clear_keys") ||
!strcmp(p, "ck")) {
clear_mods = 2;
+ } else if (!strcmp(p, "noncache") ||
+ !strcmp(p, "nc")) {
+ ncache = 0;
+ ncache0 = 0;
} else if (!strcmp(p, "repeat")) {
no_autorepeat = 0;
} else if (strstr(p, "speeds=") == p ||
@@ -1873,6 +1878,9 @@ fprintf(stderr, "\n");}
if (chg_raw_fb) {
raw_fb = NULL;
}
+
+ ncache = ncache_save;
+
if (unixpw && keep_unixpw_opts && keep_unixpw_opts[0] != '\0') {
user_supplied_opts(keep_unixpw_opts);
}
@@ -1880,7 +1888,6 @@ fprintf(stderr, "\n");}
free(create_cmd);
}
- ncache = ncache_save;
return 1;
}