diff options
author | runge <runge> | 2006-07-09 01:48:31 +0000 |
---|---|---|
committer | runge <runge> | 2006-07-09 01:48:31 +0000 |
commit | 079528470d8a1dfeab321ebdc2ab6c42943ed296 (patch) | |
tree | aaa83a4d318c1c72a7698c3b8a6b5318397688d3 /x11vnc/util.c | |
parent | 8cda60969b6d2df88e0f4fc0fd267dc26adb3872 (diff) | |
download | libtdevnc-079528470d8a1dfeab321ebdc2ab6c42943ed296.tar.gz libtdevnc-079528470d8a1dfeab321ebdc2ab6c42943ed296.zip |
x11vnc: add uinput support for full input into linux fb device (e.g. qt-embed).
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) { |