X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fflipscreen3d.c;h=92c0fa0dc5da99748e368b578479b7f1cfc9d504;hb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;hp=996d7c75b610b94327c20a889a87632e4a528f8a;hpb=c494fd2e6b3b25582375d62e40f4f5cc984ca424;p=xscreensaver diff --git a/hacks/glx/flipscreen3d.c b/hacks/glx/flipscreen3d.c index 996d7c75..92c0fa0d 100644 --- a/hacks/glx/flipscreen3d.c +++ b/hacks/glx/flipscreen3d.c @@ -42,6 +42,7 @@ # define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF # endif +#define DEF_ROTATE "True" static int rotate; #define QW 12 @@ -58,7 +59,7 @@ static XrmOptionDescRec opts[] = { static argtype vars[] = { - {&rotate, "rotate", "Rotate", "True", t_Bool}, + {&rotate, "rotate", "Rotate", DEF_ROTATE, t_Bool}, }; @@ -140,7 +141,9 @@ screenflip_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 (c->trackball, event->xbutton.button, 10, !!event->xbutton.state);