From 8898ba50135e66e2d45e7423cf8b0fd887784086 Mon Sep 17 00:00:00 2001 From: rebtd7 <59185507+rebtd7@users.noreply.github.com> Date: Tue, 16 Mar 2021 09:49:38 -0300 Subject: [PATCH] Fix mouse input at start when using borderless mode --- d3d9ex/AutoFix.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/d3d9ex/AutoFix.cpp b/d3d9ex/AutoFix.cpp index 8ba0bee..e95fe3d 100644 --- a/d3d9ex/AutoFix.cpp +++ b/d3d9ex/AutoFix.cpp @@ -205,6 +205,11 @@ void MainContext::ForceWindowActivate(const HWND hWnd) { PostMessage(hWnd, WM_ACTIVATE, WA_CLICKACTIVE, NULL); } +void MainContext::ForceWindowActivate(const HWND hWnd) { + PostMessage(hWnd, WM_ACTIVATE, WA_INACTIVE, NULL); + PostMessage(hWnd, WM_ACTIVATE, WA_CLICKACTIVE, NULL); +} + void MainContext::FF13_OneTimeFixes() { if (IsDXVK()) { @@ -319,9 +324,12 @@ void MainContext::FF13_SetFrameRateVariables() void MainContext::FF13_2_OneTimeFixes() { ForceWindowActivate(hWndFF13); +<<<<<<< HEAD if (IsDXVK()) { PatchMessageBox(ff13_2_message_box_call_address); } +======= +>>>>>>> 86eae4b... Fix mouse input at start when using borderless mode if (*ff13_2_frame_pacer_ptr_address) { **ff13_2_frame_pacer_ptr_address = MAX_FRAME_RATE_LIMIT;