summaryrefslogtreecommitdiff
path: root/src/exec.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.zig')
-rw-r--r--src/exec.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/exec.zig b/src/exec.zig
index 11d003b5..63bb4c1c 100644
--- a/src/exec.zig
+++ b/src/exec.zig
@@ -1134,12 +1134,12 @@ pub fn placeNew(p: *Pardes, from: usize, origin: ?usize, id: usize, kind: NewPan
// (Pardes.unplaced) once whatever made it is done with it.
if (!layout.placedRoomy(p, id, &before)) if (layout.findPane(p, id)) |f| {
layout.removePane(p, id);
- for (p.col_panes[f.col][0..p.col_n[f.col]]) |k| p.rects[k] = before[k];
+ for (p.cols[f.col].panes[0..p.cols[f.col].n]) |k| p.rects[k] = before[k];
layout.snapColWeights(p, f.col);
if (!layout.splitTallest(p, f.col, id) or !layout.placedRoomy(p, id, &before)) {
if (layout.findPane(p, id) != null) {
layout.removePane(p, id);
- for (p.col_panes[f.col][0..p.col_n[f.col]]) |k| p.rects[k] = before[k];
+ for (p.cols[f.col].panes[0..p.cols[f.col].n]) |k| p.rects[k] = before[k];
layout.snapColWeights(p, f.col);
}
// No pane to halve, but the column has the rows for the new
@@ -1157,16 +1157,16 @@ pub fn placeNew(p: *Pardes, from: usize, origin: ?usize, id: usize, kind: NewPan
while (c > 0) {
c -= 1;
if (c == f.col or c == finder_column) continue;
- for (p.col_panes[c][0..p.col_n[c]]) |k| p.rects[k] = before[k];
+ for (p.cols[c].panes[0..p.cols[c].n]) |k| p.rects[k] = before[k];
layout.snapColWeights(p, c);
- if (p.col_n[c] == 0) {
+ if (p.cols[c].n == 0) {
layout.insert(p, c, 0, id);
break;
}
if (layout.splitTallest(p, c, id) and layout.placedRoomy(p, id, &before)) break;
if (layout.findPane(p, id) != null) layout.removePane(p, id);
} else {
- layout.insert(p, f.col, p.col_n[f.col], id);
+ layout.insert(p, f.col, p.cols[f.col].n, id);
p.unplaced.set(id);
// Refused holding no weight: its column's rows come
// back as they were.
@@ -1176,7 +1176,7 @@ pub fn placeNew(p: *Pardes, from: usize, origin: ?usize, id: usize, kind: NewPan
return;
}
} else {
- layout.insert(p, f.col, p.col_n[f.col], id);
+ layout.insert(p, f.col, p.cols[f.col].n, id);
// Refused, it closes at the step's end holding no weight, so
// its column's rows come back as they were, none rounded off.
p.panes[id].?.vweight = 0;