From 362df4c720105816f29dab85ee27fc70bd5f8225 Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Thu, 30 Jan 2025 11:37:46 -0800 Subject: [PATCH] send window without history to background when restore snapshot --- .../Common/PersistentWindowProcessor.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index 6a9abd6..5d4eb34 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -3205,10 +3205,9 @@ namespace PersistentWindows.Common { Log.Error("no previous record found for window {0}", GetWindowTitle(hwnd)); - if (restoringFromMem) + if (restoringSnapshot) { //the window did not exist when snapshot was taken - /* User32.SetWindowPos(hwnd, new IntPtr(1), //bottom 0, 0, 0, 0, 0 @@ -3216,7 +3215,6 @@ namespace PersistentWindows.Common | SetWindowPosFlags.IgnoreMove | SetWindowPosFlags.IgnoreResize ); - */ return false; }