1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

don't minimize on focus loss when mouse is not locked

This commit is contained in:
FunkyFr3sh 2018-11-16 07:27:05 +01:00
parent d91e26fcda
commit 848c918362

View File

@ -1003,6 +1003,9 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
} }
else if (wParam == WA_INACTIVE) else if (wParam == WA_INACTIVE)
{ {
if (!ddraw->windowed && !ddraw->locked)
return 0;
mouse_unlock(); mouse_unlock();
if (ddraw->wine && LastSetWindowPosTick + 500 > timeGetTime()) if (ddraw->wine && LastSetWindowPosTick + 500 > timeGetTime())