mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-09 01:10:26 +00:00
20 lines
343 B
C
20 lines
343 B
C
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);
|
|
} |