diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index c3450f7..07ab40c 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -1629,9 +1629,10 @@ namespace PersistentWindows.Common IntPtr oldest_window = IntPtr.Zero; foreach (var kid in keys) { - if (deadApps[display_config][kid].Last().CaptureTime < tm) + DateTime t = deadApps[display_config][kid].Last().CaptureTime; + if (t < tm) { - tm = deadApps[display_config][kid].Last().CaptureTime; + tm = t; oldest_window = kid; break; }