From cc2fa3311caa314fd6be06abfc7acb643e98596b Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Tue, 8 Oct 2024 16:52:10 -0700 Subject: [PATCH] avoid auto capture in fullscreen gaming --- .../Common/PersistentWindowProcessor.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index aa45102..00f28bf 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -1904,7 +1904,7 @@ namespace PersistentWindows.Common if (monitorApplications.ContainsKey(curDisplayKey) && monitorApplications[curDisplayKey].ContainsKey(hwnd)) StartCaptureTimer(UserMoveLatency / 2); - else if (foreGroundWindow != fullScreenGamingWindow) + else if (fullScreenGamingWindow == IntPtr.Zero) { StartCaptureTimer(); @@ -1937,6 +1937,9 @@ namespace PersistentWindows.Common allUserMoveWindows.Add(hwnd); } + if (fullScreenGamingWindow != IntPtr.Zero) + return; + if (foreGroundWindow == hwnd) { StartCaptureTimer(UserMoveLatency / 4);