Revert (pretty crappy) gap version of gapless-grid
This commit is contained in:
@@ -22,10 +22,10 @@ gaplessgrid(Monitor *m) {
|
|||||||
for(i = 0, c = nexttiled(m->clients); c; i++, c = nexttiled(c->next)) {
|
for(i = 0, c = nexttiled(m->clients); c; i++, c = nexttiled(c->next)) {
|
||||||
if(i/rows + 1 > cols - n%cols)
|
if(i/rows + 1 > cols - n%cols)
|
||||||
rows = n/cols + 1;
|
rows = n/cols + 1;
|
||||||
ch = (rows ? m->wh / rows : m->wh) - m->gappx;
|
ch = (rows ? m->wh / rows : m->wh);
|
||||||
cx = (m->wx + cn*cw) + m->gappx;
|
cx = (m->wx + cn*cw);
|
||||||
cy = (m->wy + rn*ch) + m->gappx;
|
cy = (m->wy + rn*ch);
|
||||||
resize(c, cx + m->gappx, cy, cw - 2 * c->bw - m->gappx, ch - 2 * c->bw, False);
|
resize(c, cx, cy, cw - 2 * c->bw, ch - 2 * c->bw, False);
|
||||||
rn++;
|
rn++;
|
||||||
if(rn >= rows) {
|
if(rn >= rows) {
|
||||||
rn = 0;
|
rn = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user