Update mouse button state when re-entering a window

Fixes https://github.com/libsdl-org/SDL/issues/12423
This commit is contained in:
Sam Lantinga
2025-03-01 12:35:44 -08:00
parent b836ad4d4f
commit 020664bd10

View File

@@ -1389,6 +1389,8 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
if (TrackMouseEvent(&trackMouseEvent)) {
data->mouse_tracked = true;
}
WIN_CheckAsyncMouseRelease(WIN_GetEventTimestamp(), data);
}
if (!data->videodata->raw_mouse_enabled) {