summaryrefslogtreecommitdiffstats
path: root/x11vnc/user.c
diff options
context:
space:
mode:
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;
}
OpenPOWER on IntegriCloud