mirror of
https://github.com/esjeon/krohnkite.git
synced 2024-10-03 23:07:13 +03:00
Rect#gap instead of ad-hoc calculation
This commit is contained in:
parent
d607c37f35
commit
14e618d18b
@ -34,13 +34,8 @@ class TilingEngine {
|
||||
const srf = basis.surface;
|
||||
const layout = this.layouts.getCurrentLayout(srf);
|
||||
if (layout.adjust) {
|
||||
const fullArea = srf.workingArea;
|
||||
const area = new Rect(
|
||||
fullArea.x + CONFIG.screenGapLeft,
|
||||
fullArea.y + CONFIG.screenGapTop,
|
||||
fullArea.width - (CONFIG.screenGapLeft + CONFIG.screenGapRight),
|
||||
fullArea.height - (CONFIG.screenGapTop + CONFIG.screenGapBottom),
|
||||
);
|
||||
const area = srf.workingArea.gap(CONFIG.screenGapLeft, CONFIG.screenGapRight,
|
||||
CONFIG.screenGapTop, CONFIG.screenGapBottom);
|
||||
const tiles = this.windows.getVisibleTiles(srf);
|
||||
layout.adjust(area, tiles, basis, basis.geometryDelta);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user