]> jxnshi.xyz Git - dwm-config.git/commitdiff
Fix
authorjxnshi <jxnshi@proton.me>
Fri, 24 Jan 2025 16:02:14 +0000 (17:02 +0100)
committerjxnshi <jxnshi@proton.me>
Fri, 24 Jan 2025 16:02:14 +0000 (17:02 +0100)
dwm.c

diff --git a/dwm.c b/dwm.c
index 649f74ad8d3875741bcbc87a3b7fa4a8e84fe37e..59d49f1e6a8a3aed0304133d345508e2783b47db 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1727,10 +1727,10 @@ tile(Monitor *m)
        if (n > m->nmaster)
                mw = m->nmaster ? m->ww * m->mfact : 0;
        else
-               mw = m->ww - m->gappx;
-       for (i = 0, my = ty = m->gappx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
+               mw = m->ww - gappx;
+       for (i = 0, my = ty = gappx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
                        if (i < m->nmaster) {
-                       h = (m->wh - my) / (MIN(n, m->nmaster) - i) - m->gappx;
+                       h = (m->wh - my) / (MIN(n, m->nmaster) - i) - gappx;
                        resize(c, m->wx + gappx, m->wy + my, mw - (2*c->bw) - gappx, h - (2*c->bw), 0);
                        if (my + HEIGHT(c) + gappx < m->wh)
                                my += HEIGHT(c) + gappx;