From f2f8e6f5ef41d2b079a5f5ae0a47e948202999a2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 13 Aug 2015 21:40:32 -0400 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index 6c8f8d415..fd08f4e67 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -1029,8 +1029,8 @@ X11_DispatchEvent(_THIS) /* 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;