summaryrefslogtreecommitdiffstats
path: root/x11vnc/user.c
diff options
context:
space:
mode:
authorrunge <runge>2007-01-02 05:15:07 +0000
committerrunge <runge>2007-01-02 05:15:07 +0000
commitc88d830f5591913f2e5e763814978e2877f367ec (patch)
tree217ae1113daa5bced6f21c34eb1a923bcd8cec18 /x11vnc/user.c
parent833f06025fbd2fa8d4d83ccf8ab068c8060663de (diff)
downloadlibtdevnc-c88d830f5591913f2e5e763814978e2877f367ec.tar.gz
libtdevnc-c88d830f5591913f2e5e763814978e2877f367ec.zip
x11vnc: more -ncache improvements.
Diffstat (limited to 'x11vnc/user.c')
-rw-r--r--x11vnc/user.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/user.c b/x11vnc/user.c
index cf7cbe4..1a2bbd8 100644
--- a/x11vnc/user.c
+++ b/x11vnc/user.c
@@ -1235,6 +1235,7 @@ int wait_for_client(int *argc, char** argv, int http) {
char *create_cmd = NULL;
char *users_list_save = NULL;
int created_disp = 0;
+ int ncache_save;
if (! use_dpy || strstr(use_dpy, "WAIT:") != use_dpy) {
return 0;
@@ -1341,6 +1342,9 @@ int wait_for_client(int *argc, char** argv, int http) {
*argc = (*argc) + 1;
}
+ ncache_save = ncache;
+ ncache = 0;
+
initialize_allowed_input();
if (! multiple_cursors_mode) {
@@ -1745,6 +1749,8 @@ if (db) fprintf(stderr, "xauth_raw_len: %d\n", n);
free(create_cmd);
}
+ ncache = ncache_save;
+
return 1;
}