mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
[FancyZones] Cleanup (#14274)
* [FancyZones] Remove obsolete code The field `m_zoneSets` is unused, and may be removed. * [FancyZones] Remove obsolete code The field `m_windows` is unused, and may be removed. * [FancyZones] Move adjustment of `RECT` to utils.cpp By doing so, also fix a bug where a non-`WS_SIZEBOX` window (a window that should not be resized) was resized (and not properly resized) if it was zoned into more than one zone. * [FancyZones] Complete rename `ZoneWindow` -> `WorkArea` Fix leftovers from "[FancyZones] Rename ZoneWindow -> WorkArea (#12223)" * [FancyZones] Refer to the move/size action as dragging * [FancyZones] Rename `ActiveZoneSet` -> `ZoneSet` There is only one zone set used by a work area. * [FancyZones] Rename `zoneUuid` -> `layoutUuid` The variable holds the UUID of the layout (not of a zone). Co-authored-by: float4 <float4-unspecified-mail>
This commit is contained in:
@@ -134,9 +134,9 @@ void MonitorWorkAreaHandler::UpdateZoneColors(const ZoneColors& colors)
|
||||
{
|
||||
for (const auto& workArea : workAreaMap)
|
||||
{
|
||||
for (const auto& zoneWindow : workArea.second)
|
||||
for (const auto& workAreaPtr : workArea.second)
|
||||
{
|
||||
zoneWindow.second->SetZoneColors(colors);
|
||||
workAreaPtr.second->SetZoneColors(colors);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -145,9 +145,9 @@ void MonitorWorkAreaHandler::UpdateOverlappingAlgorithm(OverlappingZonesAlgorith
|
||||
{
|
||||
for (const auto& workArea : workAreaMap)
|
||||
{
|
||||
for (const auto& zoneWindow : workArea.second)
|
||||
for (const auto& workAreaPtr : workArea.second)
|
||||
{
|
||||
zoneWindow.second->SetOverlappingZonesAlgorithm(overlappingAlgorithm);
|
||||
workAreaPtr.second->SetOverlappingZonesAlgorithm(overlappingAlgorithm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user