do not auto restore activated floating window

This commit is contained in:
Kang Yu 2024-12-07 13:29:26 -08:00
parent 6feaa24d92
commit 453a4cb9e9

View file

@ -3167,7 +3167,7 @@ namespace PersistentWindows.Common
{
moved = true;
if (restore_last && prevDisplayMetrics != null && !restoringFromDB)
if (restore_last && prevDisplayMetrics != null && !restoringFromDB && IsResizableWindow(hwnd))
{
Log.Trace($"restore {windowTitle[hwnd]} to last captured position");
restoringFromMem = true;