From 079528470d8a1dfeab321ebdc2ab6c42943ed296 Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 9 Jul 2006 01:48:31 +0000 Subject: x11vnc: add uinput support for full input into linux fb device (e.g. qt-embed). --- x11vnc/util.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'x11vnc/util.c') 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) { -- cgit v1.2.1