X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fglblur.c;h=29e6f23d3cc69f4ba0bf12e3cbf66f2e5e8e6017;hb=447db08c956099b3b183886729108bf5b364c4b8;hp=59b0870d31ada815b1c40a079d6c7c7545b70709;hpb=9c9d475ff889ed8be02e8ce8c17da28b93278fca;p=xscreensaver diff --git a/hacks/glx/glblur.c b/hacks/glx/glblur.c index 59b0870d..29e6f23d 100644 --- a/hacks/glx/glblur.c +++ b/hacks/glx/glblur.c @@ -42,9 +42,6 @@ extern XtAppContext app; "*showFPS: False \n" \ "*fpsSolid: True \n" \ "*wireframe: False \n" \ - "*spin: " DEF_SPIN "\n" \ - "*wander: " DEF_WANDER "\n" \ - "*blurSize: " DEF_BLURSIZE "\n" \ #undef countof @@ -363,7 +360,7 @@ glblur_handle_event (ModeInfo *mi, XEvent *event) glblur_configuration *bp = &bps[MI_SCREEN(mi)]; if (event->xany.type == ButtonPress && - event->xbutton.button & Button1) + event->xbutton.button == Button1) { bp->button_down_p = True; gltrackball_start (bp->trackball, @@ -372,11 +369,19 @@ glblur_handle_event (ModeInfo *mi, XEvent *event) return True; } else if (event->xany.type == ButtonRelease && - event->xbutton.button & Button1) + event->xbutton.button == Button1) { bp->button_down_p = False; return True; } + else if (event->xany.type == ButtonPress && + (event->xbutton.button == Button4 || + event->xbutton.button == Button5)) + { + gltrackball_mousewheel (bp->trackball, event->xbutton.button, 10, + !!event->xbutton.state); + return True; + } else if (event->xany.type == MotionNotify && bp->button_down_p) {