use WM_ACTIVATEAPP for alt+tab logic

This commit is contained in:
FunkyFr3sh 2021-05-29 15:30:32 +02:00
parent 910bade5ba
commit 21555e06f7
2 changed files with 20 additions and 17 deletions

View file

@ -59,7 +59,6 @@ void mouse_lock()
if (g_ddraw->handlemouse)
{
SetCapture(g_ddraw->hwnd);
real_ClipCursor(&rc);
while (real_ShowCursor(FALSE) >= 0);
}
@ -127,7 +126,6 @@ void mouse_unlock()
}
real_ClipCursor(NULL);
ReleaseCapture();
real_SetCursorPos(
(int)(rc.left + g_ddraw->render.viewport.x + (g_ddraw->cursor.x * g_ddraw->render.scale_w)),