mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
avoid auto capture in fullscreen gaming
This commit is contained in:
parent
ea1b7baea6
commit
cc2fa3311c
1 changed files with 4 additions and 1 deletions
|
@ -1904,7 +1904,7 @@ namespace PersistentWindows.Common
|
||||||
|
|
||||||
if (monitorApplications.ContainsKey(curDisplayKey) && monitorApplications[curDisplayKey].ContainsKey(hwnd))
|
if (monitorApplications.ContainsKey(curDisplayKey) && monitorApplications[curDisplayKey].ContainsKey(hwnd))
|
||||||
StartCaptureTimer(UserMoveLatency / 2);
|
StartCaptureTimer(UserMoveLatency / 2);
|
||||||
else if (foreGroundWindow != fullScreenGamingWindow)
|
else if (fullScreenGamingWindow == IntPtr.Zero)
|
||||||
{
|
{
|
||||||
StartCaptureTimer();
|
StartCaptureTimer();
|
||||||
|
|
||||||
|
@ -1937,6 +1937,9 @@ namespace PersistentWindows.Common
|
||||||
allUserMoveWindows.Add(hwnd);
|
allUserMoveWindows.Add(hwnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fullScreenGamingWindow != IntPtr.Zero)
|
||||||
|
return;
|
||||||
|
|
||||||
if (foreGroundWindow == hwnd)
|
if (foreGroundWindow == hwnd)
|
||||||
{
|
{
|
||||||
StartCaptureTimer(UserMoveLatency / 4);
|
StartCaptureTimer(UserMoveLatency / 4);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue