From 7a3a2c3cc195eee2dfd6341501505a7b011dd232 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 7 Jul 2021 01:04:04 +0200 Subject: [PATCH] Fix gapps in column mode --- dwm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } }