make sure we only let the first WM_ACTIVATEAPP pass through
This commit is contained in:
parent
4df9dfc654
commit
0246dd44e9
1 changed files with 4 additions and 2 deletions
|
@ -671,10 +671,12 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||||
/* let it pass through once (tiberian sun / ClueFinders) */
|
/* let it pass through once (tiberian sun / ClueFinders) */
|
||||||
static BOOL one_time;
|
static BOOL one_time;
|
||||||
|
|
||||||
if (wParam && !one_time)
|
if (!one_time)
|
||||||
{
|
{
|
||||||
one_time = TRUE;
|
one_time = TRUE;
|
||||||
break;
|
|
||||||
|
if (wParam)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wParam && g_ddraw.alt_key_down && !g_config.releasealt)
|
if (wParam && g_ddraw.alt_key_down && !g_config.releasealt)
|
||||||
|
|
Loading…
Reference in a new issue