[FancyZones] Increase the number of zones limit to 128 (#15976)

This commit is contained in:
Seraphima Zykova
2022-02-04 18:09:11 +03:00
committed by GitHub
parent f62dd6933c
commit a3dbb55404
13 changed files with 263 additions and 75 deletions

View File

@@ -419,7 +419,7 @@ void FancyZones::WindowCreated(HWND window) noexcept
return;
}
const bool isZoned = reinterpret_cast<ZoneIndex>(::GetProp(window, ZonedWindowProperties::PropertyMultipleZoneID)) != 0;
const bool isZoned = !FancyZonesWindowProperties::RetrieveZoneIndexProperty(window).empty();
if (isZoned)
{
return;
@@ -957,7 +957,7 @@ void FancyZones::UpdateWindowsPositions(bool suppressMove) noexcept
{
for (const auto [window, desktopId] : m_virtualDesktop.GetWindowsRelatedToDesktops())
{
auto zoneIndexSet = GetZoneIndexSet(window);
auto zoneIndexSet = FancyZonesWindowProperties::RetrieveZoneIndexProperty(window);
auto workArea = m_workAreaHandler.GetWorkArea(window, desktopId);
if (workArea)
{