mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 20:45:38 +02:00
dump window position for every auto restore
This commit is contained in:
parent
e8322d5a8a
commit
7fd80af8bf
1 changed files with 3 additions and 1 deletions
|
@ -618,6 +618,8 @@ namespace PersistentWindows.Common
|
|||
|
||||
if (!wasRestoringSnapshot && !wasRestoringFromDB)
|
||||
{
|
||||
WriteDataDump();
|
||||
|
||||
if (!snapshotTakenTime.ContainsKey(curDisplayKey))
|
||||
snapshotTakenTime[curDisplayKey] = new Dictionary<int, DateTime>();
|
||||
if (snapshotTakenTime[curDisplayKey].ContainsKey(MaxSnapshots))
|
||||
|
@ -2833,7 +2835,7 @@ namespace PersistentWindows.Common
|
|||
if (kid != IntPtr.Zero)
|
||||
{
|
||||
InheritKilledWindow(hwnd, kid);
|
||||
Log.Error($"Inherit position data from killed window {kid} for {curDisplayMetrics.Title}");
|
||||
Log.Error($"Inherit position data from killed window 0x{kid.ToString("X")} for {curDisplayMetrics.Title}");
|
||||
}
|
||||
|
||||
//newly created window or new display setting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue