Skip to content

Commit

Permalink
Fixed grab handling when focus changes between windows in the same ap…
Browse files Browse the repository at this point in the history
…plication
  • Loading branch information
slouken committed Oct 20, 2021
1 parent d9c44b6 commit bfd2f89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/video/windows/SDL_windowsevents.c
Expand Up @@ -663,6 +663,14 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
}
break;

case WM_SETFOCUS:
case WM_KILLFOCUS:
{
/* Update the focus in case it's changing between windows in the same application */
WIN_UpdateFocus(data->window);
}
break;

case WM_POINTERUPDATE:
{
data->last_pointer_update = lParam;
Expand Down

0 comments on commit bfd2f89

Please sign in to comment.