diff --git a/dwm.c b/dwm.c index bfadcab..674fd36 100644 --- a/dwm.c +++ b/dwm.c @@ -2004,13 +2004,13 @@ col(Monitor *m) { mw = m->ww - m->gappx; for(i =0, x = y = m->gappx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) { if(i < m->nmaster) { - w = (mw - x) / (MIN(n, m->nmaster)-i) - m->gappx; - resize(c, x + m->wx + m->gappx, m->wy + m->gappx, w - (2*c->bw) - (2*m->gappx), m->wh - ((2*c->bw) + (2*m->gappx)), False); + w = (mw - x) / (MIN(n, m->nmaster)-i); + resize(c, x + m->wx, m->wy + m->gappx, w - (2*c->bw), m->wh - ((2*c->bw) + (2*m->gappx)), False); x += WIDTH(c) + m->gappx; } else { h = (m->wh - y) / (n - i) - m->gappx; - resize(c, x + m->wx + m->gappx, m->wy + y, m->ww - x - (2*c->bw) - (2*m->gappx), h - (2*c->bw), False); + resize(c, x + m->wx, m->wy + y, m->ww - x - (2*c->bw) - m->gappx, h - (2*c->bw), False); y += HEIGHT(c) + m->gappx; } }