From 6243a06539931882646642543e30fa26d33224cb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 3 Feb 2025 09:00:14 -0800 Subject: [PATCH] Call the windows message hook for WM_ENTERSIZEMOVE and WM_ENTERMENULOOP Fixes https://github.com/libsdl-org/SDL/issues/12169 --- src/video/windows/SDL_windowsevents.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index c9bf2a4989..64765dc53a 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -1721,6 +1721,10 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara case WM_ENTERSIZEMOVE: case WM_ENTERMENULOOP: { + if (!DispatchModalLoopMessageHook(&hwnd, &msg, &wParam, &lParam)) { + return 0; + } + ++data->in_modal_loop; if (data->in_modal_loop == 1) { data->initial_size_rect.left = data->window->x;