commit a962ddf469200c67b4e9dd0e2a83c6394eeb118a parent 49f5bc9aadfa06609183568c36290f8d82d4538f Author: Aaron Duxler <aaron.duxler@gmail.com> Date: Wed, 14 Aug 2019 22:33:10 +0200 [dwm][patch] setborderpx update selmon instead of mons Diffstat:
M | dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff | | | 16 | ++++++++-------- |
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff b/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff @@ -56,19 +56,19 @@ diff -up a/dwm.c b/dwm.c + Client *c; + + if (arg->i == 0) -+ mons->borderpx = borderpx; -+ else if (mons->borderpx + arg->i < 0) -+ mons->borderpx = 0; ++ selmon->borderpx = borderpx; ++ else if (selmon->borderpx + arg->i < 0) ++ selmon->borderpx = 0; + else -+ mons->borderpx += arg->i; ++ selmon->borderpx += arg->i; + -+ for (c = mons->clients; c; c = c->next) ++ for (c = selmon->clients; c; c = c->next) + if (c->bw + arg->i < 0) -+ c->bw = mons->borderpx = 0; ++ c->bw = selmon->borderpx = 0; + else -+ c->bw = mons->borderpx; ++ c->bw = selmon->borderpx; + -+ arrange(mons); ++ arrange(selmon); +} + +void