Fixed grab handling when focus changes between windows in the same application

This commit is contained in:
Sam Lantinga 2021-10-19 17:29:23 -07:00
parent d9c44b6537
commit bfd2f8993f
1 changed files with 8 additions and 0 deletions

View File

@ -663,6 +663,14 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
} }
break; 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: case WM_POINTERUPDATE:
{ {
data->last_pointer_update = lParam; data->last_pointer_update = lParam;