mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
minimize first and then ChangeDisplaySettings (fixes alt+tab on ubuntu)
This commit is contained in:
parent
068c3af8e1
commit
366ce012b2
@ -588,8 +588,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
/* minimize our window on defocus when in fullscreen */
|
/* minimize our window on defocus when in fullscreen */
|
||||||
if (!ddraw->windowed)
|
if (!ddraw->windowed)
|
||||||
{
|
{
|
||||||
ChangeDisplaySettings(&ddraw->mode, 0);
|
|
||||||
ShowWindow(ddraw->hWnd, SW_MINIMIZE);
|
ShowWindow(ddraw->hWnd, SW_MINIMIZE);
|
||||||
|
ChangeDisplaySettings(&ddraw->mode, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user