reliably send window to bottom z-order if no qualified restore record is found

This commit is contained in:
Kang Yu 2024-11-12 22:47:19 -08:00
parent cd328c2979
commit 7f5f465362

View file

@ -3163,7 +3163,7 @@ namespace PersistentWindows.Common
Log.Error("no previous record found for window {0}", GetWindowTitle(hwnd));
noRecordWindows.Add(hwnd);
if (restoringFromMem && monitorApplications[displayKey][hwnd].Count < 2)
if (restoringFromMem)
{
//the window did not exist when snapshot was taken
User32.SetWindowPos(hwnd, new IntPtr(1), //bottom