diff --git a/src/modules/event/sdl/Event.cpp b/src/modules/event/sdl/Event.cpp index c1f217a9c..eebbb561a 100644 --- a/src/modules/event/sdl/Event.cpp +++ b/src/modules/event/sdl/Event.cpp @@ -603,7 +603,8 @@ Message *Event::convertWindowEvent(const SDL_Event &e) break; case SDL_WINDOWEVENT_SHOWN: case SDL_WINDOWEVENT_HIDDEN: - vargs.emplace_back(e.window.event == SDL_WINDOWEVENT_SHOWN); + case SDL_WINDOWEVENT_EXPOSED: + vargs.emplace_back(e.window.event != SDL_WINDOWEVENT_SHOWN); msg = new Message("visible", vargs); break; case SDL_WINDOWEVENT_RESIZED: