mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
invalidate curDisplayKey during display changing to avoid miscapture
This commit is contained in:
parent
cf4a966e28
commit
b519812fa5
1 changed files with 3 additions and 1 deletions
|
@ -728,7 +728,7 @@ namespace PersistentWindows.Common
|
|||
restoreHalted = false;
|
||||
topmostWindowsFixed.Clear();
|
||||
|
||||
Log.Error("Restore aborted for {0}", curDisplayKey);
|
||||
Log.Error("Restore aborted for {0}", displayKey);
|
||||
|
||||
curDisplayKey = displayKey;
|
||||
if (fullScreenGamingWindows.Contains(foreGroundWindow) || !normalSessions.Contains(curDisplayKey))
|
||||
|
@ -880,6 +880,8 @@ namespace PersistentWindows.Common
|
|||
WriteDataDump();
|
||||
Log.Event("Display session changed, dump history in xml");
|
||||
}
|
||||
|
||||
curDisplayKey = "invalid_display";
|
||||
}
|
||||
};
|
||||
SystemEvents.DisplaySettingsChanging += this.displaySettingsChangingHandler;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue