From 320aa08630f34dec0462bb60a5c813db17c5baf8 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Fri, 14 Jun 2019 12:51:34 +0200 Subject: Fixed muhgaps patch --- patches/dwm-muhgaps-6.2.diff | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'patches') diff --git a/patches/dwm-muhgaps-6.2.diff b/patches/dwm-muhgaps-6.2.diff index 2cdc340..6728be7 100644 --- a/patches/dwm-muhgaps-6.2.diff +++ b/patches/dwm-muhgaps-6.2.diff @@ -94,8 +94,8 @@ index 4465af1..88f3e04 100644 - resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0); - my += HEIGHT(c); + r = MIN(n, m->nmaster) - i; -+ h = (m->wh - my - m->gappoh - m->gappx * (r - 1)) / r; -+ resize(c, m->wx + m->gappov, m->wy + my, mw - (2*c->bw) - m->gappx, h - (2*c->bw), 0); ++ h = (m->wh - my - m->gappx - m->gappx * (r - 1)) / r; ++ resize(c, m->wx + m->gappx, m->wy + my, mw - (2*c->bw) - m->gappx, h - (2*c->bw), 0); + my += HEIGHT(c) + m->gappx; } else { - h = (m->wh - ty) / (n - i); @@ -110,3 +110,4 @@ index 4465af1..88f3e04 100644 -- 2.7.4 +gappx -- cgit 1.4.1