From ca3cf624355ade4b19739b2c3b5505867bbaf7a7 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sat, 29 Jul 2023 10:06:01 +0200 Subject: [PATCH] Fix gaps on stack on tile layout --- dwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwm.c b/dwm.c index eef1cdd..12add47 100644 --- a/dwm.c +++ b/dwm.c @@ -2049,12 +2049,12 @@ tile(Monitor *m) h = (m->wh - my) / (MIN(n, m->nmaster) - i) - m->gappx; resize(c, m->wx + m->gappx, m->wy + my, mw - (2*c->bw) - m->gappx, h - (2*c->bw), 0); if (my + HEIGHT(c) < m->wh) - my += HEIGHT(c); + my += HEIGHT(c) + m->gappx; } else { h = (m->wh - ty) / (n - i) - m->gappx; resize(c, m->wx + mw + m->gappx, m->wy + ty, m->ww - mw - (2*c->bw) - 2*m->gappx, h - (2*c->bw), 0); if (ty + HEIGHT(c) < m->wh) - ty += HEIGHT(c); + ty += HEIGHT(c) + m->gappx; } }