diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index e2b95ad4e..60a563e18 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -1169,7 +1169,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) } /* When the window is minimized it's resized to the dock icon size, ignore this */ - if ((data->window->flags & SDL_WINDOW_MINIMIZED) != 0) { + if (IsIconic(hwnd)) { break; }