From 5925950f247204235f44c57760b649672de61284 Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Wed, 29 Jan 2025 23:51:20 -0800 Subject: [PATCH] speedup inheritance of killed window --- .../Common/PersistentWindowProcessor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index dc4acda..6a9abd6 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -471,7 +471,9 @@ namespace PersistentWindows.Common // If the window move is caused by user snapping window to screen edge, // 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) + || FindMatchingKilledWindow(hwnd) != IntPtr.Zero)) { //capture with slight delay inperceivable by user, required for full screen mode recovery userMove = true;