From f2fcd324c56fc41f2f0670cb91b8ec271e228dcd Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 29 Sep 2016 23:12:58 -0400 Subject: [PATCH] windows: fix borderless windows at desktop resolution (thanks, Evgeny!). Fixes Bugzilla #3404. --- src/video/windows/SDL_windowsevents.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index 32d5e14c1..f92206646 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -765,6 +765,13 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) break; #endif /* WM_GETMINMAXINFO */ + case WM_WINDOWPOSCHANGING: + + if (data->expected_resize) { + returnCode = 0; + } + break; + case WM_WINDOWPOSCHANGED: { RECT rect;