X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Ftimers.c;h=9f3877e5b07e0a4a230c79d759f0e8ef9e1e5c52;hp=7c2c363a071bb1a256d93dee8fa67091f0716a33;hb=a94197e76a5dea5cb60542840809d6c20d0abbf3;hpb=8eb2873d7054e705c4e83f22d18c40946a9e2529 diff --git a/driver/timers.c b/driver/timers.c index 7c2c363a..9f3877e5 100644 --- a/driver/timers.c +++ b/driver/timers.c @@ -21,6 +21,8 @@ #include #include #include +#include +#include #ifdef HAVE_XMU # ifndef VMS # include @@ -131,6 +133,12 @@ notice_events (saver_info *si, Window window, Bool top_p) the mouse or touching the keyboard, we won't know that they've been active, and the screensaver will come on. That sucks, but I don't know how to get around it. + + Since X presents mouse wheels as clicks, this applies to those, too: + scrolling through a document using only the mouse wheel doesn't + count as activity... Fortunately, /proc/interrupts helps, on + systems that have it. Oh, if it's a PS/2 mouse, not serial or USB. + This sucks! */ XSelectInput (si->dpy, window, SubstructureNotifyMask | events);