flextile deluxe: fixed dual stack bug
This commit is contained in:
		| @@ -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; | 	rest = (h - ih * (rows - 1)) - ch * rows; | ||||||
|  |  | ||||||
| 	for (i = 0; i < rows; i++) { | 	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; | 		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; | 	rest = (w - iv * (cols - 1)) - cw * cols; | ||||||
|  |  | ||||||
| 	for (i = 0; i < cols; i++) { | 	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; | 		x += cw + (i < rest ? 1 : 0) + iv; | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user