diff --git a/dwm.c b/dwm.c index 76e3f8b..4a1eda8 100644 --- a/dwm.c +++ b/dwm.c @@ -2004,7 +2004,7 @@ col(Monitor *m) { x += WIDTH(c) + m->gappx; } else { - h = (m->wh - y) / (n - i) - m->gappx; + h = (m->wh - y) / (n - i); resize(c, x + m->wx + m->gappx, m->wy + y, m->ww - x - (2*c->bw) - (2*m->gappx), h - (2*c->bw), False); y += HEIGHT(c) + m->gappx; }