send window without history to background when restore snapshot

This commit is contained in:
Kang Yu 2025-01-30 11:37:46 -08:00
parent 5925950f24
commit 362df4c720

View file

@ -3205,10 +3205,9 @@ namespace PersistentWindows.Common
{ {
Log.Error("no previous record found for window {0}", GetWindowTitle(hwnd)); Log.Error("no previous record found for window {0}", GetWindowTitle(hwnd));
if (restoringFromMem) if (restoringSnapshot)
{ {
//the window did not exist when snapshot was taken //the window did not exist when snapshot was taken
/*
User32.SetWindowPos(hwnd, new IntPtr(1), //bottom User32.SetWindowPos(hwnd, new IntPtr(1), //bottom
0, 0, 0, 0, 0, 0, 0, 0,
0 0
@ -3216,7 +3215,6 @@ namespace PersistentWindows.Common
| SetWindowPosFlags.IgnoreMove | SetWindowPosFlags.IgnoreMove
| SetWindowPosFlags.IgnoreResize | SetWindowPosFlags.IgnoreResize
); );
*/
return false; return false;
} }