mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
flextile deluxe: fixed dual stack bug
This commit is contained in:
parent
1d8aef2198
commit
1584a32063
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user