1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

minimize first and then ChangeDisplaySettings (fixes alt+tab on ubuntu)

This commit is contained in:
FunkyFr3sh 2018-08-09 09:33:09 +02:00
parent 068c3af8e1
commit 366ce012b2

View File

@ -588,8 +588,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
/* minimize our window on defocus when in fullscreen */
if (!ddraw->windowed)
{
ChangeDisplaySettings(&ddraw->mode, 0);
ShowWindow(ddraw->hWnd, SW_MINIMIZE);
ChangeDisplaySettings(&ddraw->mode, 0);
}
}
return 0;