diff options
author | runge <runge> | 2007-05-07 02:23:11 +0000 |
---|---|---|
committer | runge <runge> | 2007-05-07 02:23:11 +0000 |
commit | 15d04d46b0fc0fd8cbbf10aafabc641304cdc3f9 (patch) | |
tree | 0c0bd93d12fa70a50d3054883e6419c16b838bdf /x11vnc/xevents.c | |
parent | 1d495291e434af3d8bb8d6ceaf5aa926dea065e9 (diff) | |
download | libtdevnc-15d04d46b0fc0fd8cbbf10aafabc641304cdc3f9.tar.gz libtdevnc-15d04d46b0fc0fd8cbbf10aafabc641304cdc3f9.zip |
x11vnc: lower -wait and -defer to 20ms. Drop client doing ultravnc stuff in -unixpw during login phase.
Diffstat (limited to 'x11vnc/xevents.c')
-rw-r--r-- | x11vnc/xevents.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/x11vnc/xevents.c b/x11vnc/xevents.c index 3948949..5d8adc9 100644 --- a/x11vnc/xevents.c +++ b/x11vnc/xevents.c @@ -1296,7 +1296,8 @@ void set_single_window(rfbClientPtr cl, int x, int y) { return; } if (unixpw_in_progress) { - rfbLog("set_single_window: unixpw_in_progress, skipping.\n"); + rfbLog("set_single_window: unixpw_in_progress, dropping client.\n"); + rfbCloseClient(cl); return; } if (cl->viewOnly) { @@ -1342,7 +1343,8 @@ void set_server_input(rfbClientPtr cl, int grab) { return; } if (unixpw_in_progress) { - rfbLog("set_server_input: unixpw_in_progress, skipping.\n"); + rfbLog("set_server_input: unixpw_in_progress, dropping client.\n"); + rfbCloseClient(cl); return; } if (cl->viewOnly) { @@ -1389,7 +1391,8 @@ void set_text_chat(rfbClientPtr cl, int len, char *txt) { fprintf(stderr, "'\n"); #endif if (unixpw_in_progress) { - rfbLog("set_text_chat: unixpw_in_progress, skipping.\n"); + rfbLog("set_text_chat: unixpw_in_progress, dropping client.\n"); + rfbCloseClient(cl); return; } iter = rfbGetClientIterator(screen); |