diff options
Diffstat (limited to 'x11vnc/util.c')
-rw-r--r-- | x11vnc/util.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/x11vnc/util.c b/x11vnc/util.c index aa0fb79..2f9aa0f 100644 --- a/x11vnc/util.c +++ b/x11vnc/util.c @@ -446,7 +446,24 @@ void rfbCFD(long usec) { } if (! use_threads) { - rfbCheckFds(screen, usec); + if (0 && all_input) { + static int cnt = 0; + int f = 1; + while (rfbCheckFds(screen, usec) > 0) { + if (f) { + cnt++; + f = 0; + } + fprintf(stderr, "-%d", cnt); + } + } else { + if (all_input) { + screen->handleEventsEagerly = TRUE; + } else { + screen->handleEventsEagerly = FALSE; + } + rfbCheckFds(screen, usec); + } } if (unixpw && unixpw_in_progress && !uip0) { |