summaryrefslogtreecommitdiffstats
path: root/x11vnc/scan.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2010-12-21 12:04:02 -0500
committerrunge <runge@karlrunge.com>2010-12-21 12:04:02 -0500
commit365a22c63cb292ea494f39ebc48a37e322e5eb14 (patch)
treeca6e87ab396ee00a837b09b2c6cede62aec69dae /x11vnc/scan.c
parentd4fabc217e8cd02aca4d248229bb8a030b2bbfe2 (diff)
downloadlibtdevnc-365a22c63cb292ea494f39ebc48a37e322e5eb14.tar.gz
libtdevnc-365a22c63cb292ea494f39ebc48a37e322e5eb14.zip
x11vnc: touchscreen uinput support and Java viewer mousewheel support. See x11vnc/ChangeLog for rest.
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r--x11vnc/scan.c12
1 files changed, 11 insertions, 1 deletions
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);