summaryrefslogtreecommitdiffstats
path: root/x11vnc/util.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-09 01:48:31 +0000
committerrunge <runge>2006-07-09 01:48:31 +0000
commit079528470d8a1dfeab321ebdc2ab6c42943ed296 (patch)
treeaaa83a4d318c1c72a7698c3b8a6b5318397688d3 /x11vnc/util.c
parent8cda60969b6d2df88e0f4fc0fd267dc26adb3872 (diff)
downloadlibtdevnc-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.c19
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) {