mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 21:15:38 +02:00
fix failure to inherit position history from killed window
This commit is contained in:
parent
7d431a22f1
commit
23fd9ba665
1 changed files with 8 additions and 0 deletions
|
@ -586,6 +586,12 @@ namespace PersistentWindows.Common
|
||||||
//try to inherit from killed window database
|
//try to inherit from killed window database
|
||||||
bool isMoved = IsWindowMoved(curDisplayKey, h, 0, now, out curDisplayMetrics, out prevDisplayMetrics);
|
bool isMoved = IsWindowMoved(curDisplayKey, h, 0, now, out curDisplayMetrics, out prevDisplayMetrics);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (normalSessions.Contains(curDisplayKey))
|
||||||
|
{
|
||||||
|
process.PriorityClass = ProcessPriorityClass.High;
|
||||||
|
StartCaptureTimer(UserMoveLatency / 4);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -673,6 +679,8 @@ namespace PersistentWindows.Common
|
||||||
|
|
||||||
captureTimer = new Timer(state =>
|
captureTimer = new Timer(state =>
|
||||||
{
|
{
|
||||||
|
process.PriorityClass = processPriority;
|
||||||
|
|
||||||
captureTimerStarted = false;
|
captureTimerStarted = false;
|
||||||
|
|
||||||
userMovePrev = userMove;
|
userMovePrev = userMove;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue