flextile deluxe: fixed dual stack bug

This commit is contained in:
bakkeby 2020-07-09 16:04:04 +02:00
parent 1d8aef2198
commit 1584a32063

View File

@ -504,7 +504,7 @@ arrange_gapplessgrid_alt1(Monitor *m, int x, int y, int h, int w, int ih, int iv
rest = (h - ih * (rows - 1)) - ch * rows;
for (i = 0; i < rows; i++) {
arrange_left_to_right(m, x, y, ch + (i < rest ? 1 : 0), w, ih, iv, n, cols, ai + i*cols);
arrange_left_to_right(m, x, y, ch + (i < rest ? 1 : 0), w, ih, iv, n, MIN(cols, an - i*cols), ai + i*cols);
y += ch + (i < rest ? 1 : 0) + ih;
}
}
@ -524,7 +524,7 @@ arrange_gapplessgrid_alt2(Monitor *m, int x, int y, int h, int w, int ih, int iv
rest = (w - iv * (cols - 1)) - cw * cols;
for (i = 0; i < cols; i++) {
arrange_top_to_bottom(m, x, y, h, cw + (i < rest ? 1 : 0), ih, iv, n, rows, ai + i*rows);
arrange_top_to_bottom(m, x, y, h, cw + (i < rest ? 1 : 0), ih, iv, n, MIN(rows, an - i*rows), ai + i*rows);
x += cw + (i < rest ? 1 : 0) + iv;
}
}