avoid auto capture in fullscreen gaming

This commit is contained in:
Kang Yu 2024-10-08 16:52:10 -07:00
parent ea1b7baea6
commit cc2fa3311c

View file

@ -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);