diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-11 02:55:02 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-11 02:55:02 +0200 |
commit | 0abc19b0ff50b5919f7cbac180af822638f89652 (patch) | |
tree | 6242b19218a3ad9342e6a8e1c9b652dcbe89271c | |
parent | c61cbf4234cbfe76fc2db04600f17b07c4f4d2a3 (diff) | |
download | serenity-0abc19b0ff50b5919f7cbac180af822638f89652.zip |
Dispatch MouseUp events with SDL.
-rw-r--r-- | Widgets/EventLoopSDL.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<MouseEvent>(Event::MouseDown, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button))); return; + case SDL_MOUSEBUTTONUP: + postEvent(&AbstractScreen::the(), make<MouseEvent>(Event::MouseUp, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button))); + return; } } } |