Skip to content

Commit

Permalink
Call the windows message hook for WM_ENTERSIZEMOVE and WM_ENTERMENULOOP
Browse files Browse the repository at this point in the history
Fixes #12169
  • Loading branch information
slouken committed Feb 3, 2025
1 parent ec959a4 commit 6243a06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/windows/SDL_windowsevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6243a06

Please sign in to comment.