Adding setborderpx patch

This commit is contained in:
bakkeby
2019-09-14 23:28:04 +02:00
parent 39e161e545
commit 5501f81b9c
8 changed files with 133 additions and 79 deletions

20
patch/setborderpx.c Normal file
View File

@ -0,0 +1,20 @@
void
setborderpx(const Arg *arg)
{
Client *c;
if (arg->i == 0)
mons->borderpx = borderpx;
else if (mons->borderpx + arg->i < 0)
mons->borderpx = 0;
else
mons->borderpx += arg->i;
for (c = mons->clients; c; c = c->next)
if (c->bw + arg->i < 0)
c->bw = mons->borderpx = 0;
else
c->bw = mons->borderpx;
arrange(selmon);
}