Adding setborderpx patch
This commit is contained in:
@ -48,6 +48,10 @@
|
||||
#include "rotatestack.c"
|
||||
#endif
|
||||
|
||||
#if SETBORDERPX_PATCH
|
||||
#include "setborderpx.c"
|
||||
#endif
|
||||
|
||||
#if SYSTRAY_PATCH
|
||||
#include "systray.c"
|
||||
#endif
|
||||
|
@ -44,6 +44,10 @@
|
||||
#include "rotatestack.h"
|
||||
#endif
|
||||
|
||||
#if SETBORDERPX_PATCH
|
||||
#include "setborderpx.h"
|
||||
#endif
|
||||
|
||||
#if SYSTRAY_PATCH
|
||||
#include "systray.h"
|
||||
#endif
|
||||
|
20
patch/setborderpx.c
Normal file
20
patch/setborderpx.c
Normal 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);
|
||||
}
|
1
patch/setborderpx.h
Normal file
1
patch/setborderpx.h
Normal file
@ -0,0 +1 @@
|
||||
static void setborderpx(const Arg *arg);
|
Reference in New Issue
Block a user