From 0246dd44e952ff0037e2f6b4eb0987c0708c7bae Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Fri, 7 Jun 2024 01:01:12 +0200 Subject: [PATCH] make sure we only let the first WM_ACTIVATEAPP pass through --- src/wndproc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wndproc.c b/src/wndproc.c index 3d0a986..43abdcf 100644 --- a/src/wndproc.c +++ b/src/wndproc.c @@ -671,10 +671,12 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam /* let it pass through once (tiberian sun / ClueFinders) */ static BOOL one_time; - if (wParam && !one_time) + if (!one_time) { one_time = TRUE; - break; + + if (wParam) + break; } if (wParam && g_ddraw.alt_key_down && !g_config.releasealt)