http://www.tienza.es/crux/src/www.jwz.org/xscreensaver/xscreensaver-5.05.tar.gz
[xscreensaver] / hacks / glx / topblock.c
index f2161e439df63e4a3165b0ba63472503e9344aaa..2db5638d5fd76c49b3d7ab5fd15f89938464fd8f 100644 (file)
@@ -1,4 +1,5 @@
-/* topblock, Copyright (c) 2006 rednuht <topblock.xscreensaver@jumpstation.co.uk>
+/* topblock, Copyright (c) 2006-2008
+ *  rednuht <topblock.xscreensaver@jumpstation.co.uk>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -847,7 +848,9 @@ topBlock_handle_event (ModeInfo *mi, XEvent *event) {
     }
   else if (event->xany.type == ButtonPress &&
            (event->xbutton.button == Button4 ||
-            event->xbutton.button == Button5))
+            event->xbutton.button == Button5 ||
+            event->xbutton.button == Button6 ||
+            event->xbutton.button == Button7))
     {
       gltrackball_mousewheel (tb->trackball, event->xbutton.button, 10,
                               !!event->xbutton.state);