X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fglmatrix.c;h=99157b516299041bc2a0474088a2071b799376b7;hp=85f33050914a2487c1186537ed352059ebb339a9;hb=2d04c4f22466851aedb6ed0f2919d148f726b889;hpb=bc7b7a8eb122206d239ec0e693676bcce31be1aa diff --git a/hacks/glx/glmatrix.c b/hacks/glx/glmatrix.c index 85f33050..99157b51 100644 --- a/hacks/glx/glmatrix.c +++ b/hacks/glx/glmatrix.c @@ -626,13 +626,13 @@ matrix_handle_event (ModeInfo *mi, XEvent *event) matrix_configuration *mp = &mps[MI_SCREEN(mi)]; if (event->xany.type == ButtonPress && - event->xbutton.button & Button1) + event->xbutton.button == Button1) { mp->button_down_p = True; return True; } else if (event->xany.type == ButtonRelease && - event->xbutton.button & Button1) + event->xbutton.button == Button1) { mp->button_down_p = False; return True; @@ -831,7 +831,6 @@ load_textures (ModeInfo *mi, Bool flip_p) glPixelStorei (GL_UNPACK_ALIGNMENT, 1); check_gl_error ("texture param"); - xi->data = 0; /* don't free the texture data */ XDestroyImage (xi); }