mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58:12 +00:00
Update mouse button state when re-entering a window
Fixes https://github.com/libsdl-org/SDL/issues/12423
This commit is contained in:
@@ -1389,6 +1389,8 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|||||||
if (TrackMouseEvent(&trackMouseEvent)) {
|
if (TrackMouseEvent(&trackMouseEvent)) {
|
||||||
data->mouse_tracked = true;
|
data->mouse_tracked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WIN_CheckAsyncMouseRelease(WIN_GetEventTimestamp(), data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data->videodata->raw_mouse_enabled) {
|
if (!data->videodata->raw_mouse_enabled) {
|
||||||
|
Reference in New Issue
Block a user