Call the windows message hook for WM_ENTERSIZEMOVE and WM_ENTERMENULOOP

Fixes https://github.com/libsdl-org/SDL/issues/12169
This commit is contained in:
Sam Lantinga
2025-02-03 09:00:14 -08:00
parent ec959a4349
commit 6243a06539

View File

@@ -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;