From f1b634231393b533efb82f2d3d4f123d57cf6bfd Mon Sep 17 00:00:00 2001 From: rainmakerv3 <30595646+rainmakerv3@users.noreply.github.com> Date: Thu, 26 Jun 2025 09:48:39 +0800 Subject: [PATCH] Don't block window restored or window exposed cases --- src/qt_gui/sdl_event_wrapper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qt_gui/sdl_event_wrapper.cpp b/src/qt_gui/sdl_event_wrapper.cpp index 3f6ba6e93..608acbbc5 100644 --- a/src/qt_gui/sdl_event_wrapper.cpp +++ b/src/qt_gui/sdl_event_wrapper.cpp @@ -19,6 +19,10 @@ Wrapper* Wrapper::GetInstance() { bool Wrapper::ProcessEvent(SDL_Event* event) { switch (event->type) { + case SDL_EVENT_WINDOW_RESTORED: + return false; + case SDL_EVENT_WINDOW_EXPOSED: + return false; case SDL_EVENT_GAMEPAD_ADDED: return false; case SDL_EVENT_GAMEPAD_REMOVED: