[wiki] [sites] [dwm][patch] setborderpx update selmon instead of mons || Aaron Duxler
commit a962ddf469200c67b4e9dd0e2a83c6394eeb118a
Author: Aaron Duxler <aaron.duxler_AT_gmail.com>
Date: Wed Aug 14 22:33:10 2019 +0200
[dwm][patch] setborderpx update selmon instead of mons
diff --git a/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff b/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff
index a573a9aa..1aad26ee 100644
--- a/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff
+++ b/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff
_AT_@ -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
Received on Wed Aug 14 2019 - 22:33:13 CEST
This archive was generated by hypermail 2.3.0
: Wed Aug 14 2019 - 22:36:26 CEST