mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 13:35:39 +02:00
avoid bogus capture
This commit is contained in:
parent
7dfd7f5616
commit
cd328c2979
1 changed files with 4 additions and 4 deletions
|
@ -698,8 +698,6 @@ namespace PersistentWindows.Common
|
||||||
//restore icon to idle
|
//restore icon to idle
|
||||||
hideRestoreTip();
|
hideRestoreTip();
|
||||||
iconBusy = false;
|
iconBusy = false;
|
||||||
if (!fullScreenGamingWindows.Contains(foreGroundWindow))
|
|
||||||
sessionActive = true;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2019,7 +2017,10 @@ namespace PersistentWindows.Common
|
||||||
// delay capture by a few seconds should be fine.
|
// delay capture by a few seconds should be fine.
|
||||||
|
|
||||||
if (monitorApplications.ContainsKey(curDisplayKey) && monitorApplications[curDisplayKey].ContainsKey(hwnd))
|
if (monitorApplications.ContainsKey(curDisplayKey) && monitorApplications[curDisplayKey].ContainsKey(hwnd))
|
||||||
|
{
|
||||||
|
userMove = true;
|
||||||
StartCaptureTimer(UserMoveLatency / 2);
|
StartCaptureTimer(UserMoveLatency / 2);
|
||||||
|
}
|
||||||
else if (fullScreenGamingWindow == IntPtr.Zero)
|
else if (fullScreenGamingWindow == IntPtr.Zero)
|
||||||
{
|
{
|
||||||
StartCaptureTimer();
|
StartCaptureTimer();
|
||||||
|
@ -2674,9 +2675,8 @@ namespace PersistentWindows.Common
|
||||||
{
|
{
|
||||||
normalSessions.Add(curDisplayKey);
|
normalSessions.Add(curDisplayKey);
|
||||||
Log.Trace("normal session {0} due to user move", curDisplayKey, userMovePrev);
|
Log.Trace("normal session {0} due to user move", curDisplayKey, userMovePrev);
|
||||||
|
CaptureApplicationsOnCurrentDisplays(displayKey, saveToDB: saveToDB); //implies auto delayed capture
|
||||||
}
|
}
|
||||||
|
|
||||||
CaptureApplicationsOnCurrentDisplays(displayKey, saveToDB: saveToDB); //implies auto delayed capture
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue