mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[FancyZones] Don't create new custom layout when applying Focus layout (#4755)
* Only persist data when applying existing layout if it is scaled * Fix applying edited Focus layout * Fix different Focus zone sizes in editor and engine * Fix codestyle
This commit is contained in:
@@ -420,8 +420,8 @@ bool ZoneSet::CalculateFocusLayout(Rect workArea, int zoneCount) noexcept
|
||||
|
||||
long left{ long(workArea.width() * 0.1) };
|
||||
long top{ long(workArea.height() * 0.1) };
|
||||
long right{ long(workArea.width() * 0.6) };
|
||||
long bottom{ long(workArea.height() * 0.6) };
|
||||
long right{ left + long(workArea.width() * 0.6) };
|
||||
long bottom{ top + long(workArea.height() * 0.6) };
|
||||
|
||||
RECT focusZoneRect{ left, top, right, bottom };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user