diff --git a/src/main.c b/src/main.c index 4ca4505..7af13b9 100644 --- a/src/main.c +++ b/src/main.c @@ -587,14 +587,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) } else if (wParam == WA_INACTIVE) { + mouse_unlock(); + if (ddraw->wine && LastSetWindowPosTick + 500 > timeGetTime()) { LastSetWindowPosTick = 0; return 0; } - mouse_unlock(); - /* minimize our window on defocus when in fullscreen */ if (!ddraw->windowed) {