1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 14:14:47 +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)
{
if (!ddraw->windowed && !ddraw->locked)
return 0;
mouse_unlock();
if (ddraw->wine && LastSetWindowPosTick + 500 > timeGetTime())