From 9e486fc986483ea4e18167d185e982414f2666db Mon Sep 17 00:00:00 2001 From: rebtd7 <59185507+rebtd7@users.noreply.github.com> Date: Wed, 24 Mar 2021 22:09:47 -0300 Subject: [PATCH] Always SetForegroundWindow --- d3d9ex/AutoFix.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/d3d9ex/AutoFix.cpp b/d3d9ex/AutoFix.cpp index 2fa8e47..d6df608 100644 --- a/d3d9ex/AutoFix.cpp +++ b/d3d9ex/AutoFix.cpp @@ -301,6 +301,7 @@ void MainContext::FF13_HandleLargeAddressAwarePatch() { void MainContext::ForceWindowActivate(const HWND hWnd) { PostMessage(hWnd, WM_ACTIVATE, WA_INACTIVE, NULL); PostMessage(hWnd, WM_ACTIVATE, WA_CLICKACTIVE, NULL); + SetForegroundWindow(hWnd); } void MainContext::FF13_OneTimeFixes() {