From 70e18e0cacf620b50a928ef423ac92272a99b872 Mon Sep 17 00:00:00 2001 From: Nate Dobbins Date: Mon, 8 Jan 2024 20:30:57 -0600 Subject: [PATCH] Emit love.visible(true) on SDL_WINDOWEVENT_EXPOSED --- src/modules/event/sdl/Event.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: