[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:
stefansjfw
2020-07-08 15:34:19 +02:00
committed by GitHub
parent db229cf1bf
commit 106c316442
3 changed files with 17 additions and 6 deletions

View File

@@ -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 };