mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-21 22:19:52 +01:00
[FancyZones] Update app zone history on window removal (#4696)
* Update app zone history on every new window assignment to zone * Compare window positions with already placed windows * Remove window property only after processing window removal from zone
This commit is contained in:
@@ -293,8 +293,6 @@ void WindowMoveHandlerPrivate::MoveSizeEnd(HWND window, POINT const& ptScreen, c
|
||||
}
|
||||
else
|
||||
{
|
||||
::RemoveProp(window, MULTI_ZONE_STAMP);
|
||||
|
||||
if (m_settings->GetSettings()->restoreSize)
|
||||
{
|
||||
if (WindowMoveHandlerUtils::IsCursorTypeIndicatingSizeEvent())
|
||||
@@ -325,6 +323,7 @@ void WindowMoveHandlerPrivate::MoveSizeEnd(HWND window, POINT const& ptScreen, c
|
||||
}
|
||||
}
|
||||
}
|
||||
::RemoveProp(window, MULTI_ZONE_STAMP);
|
||||
}
|
||||
|
||||
// Also, hide all windows (regardless of settings)
|
||||
|
||||
Reference in New Issue
Block a user