X11: only send mouse button up events if not a mousewheel "button"
authorRyan C. Gordon <icculus@icculus.org>
Thu, 13 Aug 2015 21:40:32 -0400
changeset 9840 bf7734a34f13
parent 9839 ca64802fd9b0
child 9841 aa1321ce8425
X11: only send mouse button up events if not a mousewheel "button" (Brackets in the wrong place, my bad!)
src/video/x11/SDL_x11events.c
--- a/src/video/x11/SDL_x11events.c	Thu Aug 13 17:40:28 2015 -0400
+++ b/src/video/x11/SDL_x11events.c	Thu Aug 13 21:40:32 2015 -0400
@@ -1029,8 +1029,8 @@
                     /* see explanation at case ButtonPress */
                     button -= (8-SDL_BUTTON_X1);
                 }
+                SDL_SendMouseButton(data->window, 0, SDL_RELEASED, button);
             }
-            SDL_SendMouseButton(data->window, 0, SDL_RELEASED, button);
         }
         break;