From 0abc19b0ff50b5919f7cbac180af822638f89652 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 11 Oct 2018 02:55:02 +0200 Subject: [PATCH] Dispatch MouseUp events with SDL. --- Widgets/EventLoopSDL.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Widgets/EventLoopSDL.cpp b/Widgets/EventLoopSDL.cpp index f607c3be15..383a873158 100644 --- a/Widgets/EventLoopSDL.cpp +++ b/Widgets/EventLoopSDL.cpp @@ -46,6 +46,9 @@ void EventLoopSDL::waitForEvent() case SDL_MOUSEBUTTONDOWN: postEvent(&AbstractScreen::the(), make(Event::MouseDown, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button))); return; + case SDL_MOUSEBUTTONUP: + postEvent(&AbstractScreen::the(), make(Event::MouseUp, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button))); + return; } } }