From 365a22c63cb292ea494f39ebc48a37e322e5eb14 Mon Sep 17 00:00:00 2001 From: runge Date: Tue, 21 Dec 2010 12:04:02 -0500 Subject: x11vnc: touchscreen uinput support and Java viewer mousewheel support. See x11vnc/ChangeLog for rest. --- x11vnc/scan.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'x11vnc/scan.c') diff --git a/x11vnc/scan.c b/x11vnc/scan.c index b8fa645..1fb7883 100644 --- a/x11vnc/scan.c +++ b/x11vnc/scan.c @@ -2961,7 +2961,17 @@ static void nap_check(int tile_cnt) { now = time(NULL); if (screen_blank > 0) { - int dt_ev, dt_fbu, ms = 2000; + int dt_ev, dt_fbu; + static int ms = 0; + if (ms == 0) { + ms = 2000; + if (getenv("X11VNC_SB_FACTOR")) { + ms = ms * atof(getenv("X11VNC_SB_FACTOR")); + } + if (ms <= 0) { + ms = 2000; + } + } /* if no activity, pause here for a second or so. */ dt_ev = (int) (now - last_event); -- cgit v1.2.3