Update to new version 85%
This commit is contained in:
parent
a0696d0c8d
commit
77b1959517
8
dwm.c
8
dwm.c
|
@ -273,7 +273,7 @@ static char stext[1024];
|
||||||
static char estext[2048];
|
static char estext[2048];
|
||||||
static int screen;
|
static int screen;
|
||||||
static int sw, sh; /* X display screen geometry width, height */
|
static int sw, sh; /* X display screen geometry width, height */
|
||||||
static int bh, blw = 0; /* bar geometry */
|
static int bh; /* bar height */
|
||||||
static int lrpad; /* sum of left and right padding for text */
|
static int lrpad; /* sum of left and right padding for text */
|
||||||
static int vpb;
|
static int vpb;
|
||||||
static int hpb;
|
static int hpb;
|
||||||
|
@ -477,7 +477,7 @@ buttonpress(XEvent *e)
|
||||||
click = ClkTagBar;
|
click = ClkTagBar;
|
||||||
arg.ui = 1 << i;
|
arg.ui = 1 << i;
|
||||||
goto execute_handler;
|
goto execute_handler;
|
||||||
} else if (ev->x < x + blw) {
|
} else if (ev->x < x + TEXTW(selmon->ltsymbol)) {
|
||||||
click = ClkLtSymbol;
|
click = ClkLtSymbol;
|
||||||
goto execute_handler;
|
goto execute_handler;
|
||||||
}
|
}
|
||||||
|
@ -1013,7 +1013,7 @@ drawbar(Monitor *m)
|
||||||
|
|
||||||
x += w;
|
x += w;
|
||||||
}
|
}
|
||||||
w = blw = TEXTW(m->ltsymbol);
|
w = TEXTW(m->ltsymbol);
|
||||||
drw_setscheme(drw, scheme[SchemeNorm]);
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||||
x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
|
x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
|
||||||
|
|
||||||
|
@ -2010,8 +2010,6 @@ sigchld(int unused)
|
||||||
void
|
void
|
||||||
spawn(const Arg *arg)
|
spawn(const Arg *arg)
|
||||||
{
|
{
|
||||||
if (arg->v == dmenucmd)
|
|
||||||
dmenumon[0] = '0' + selmon->num;
|
|
||||||
if (fork() == 0) {
|
if (fork() == 0) {
|
||||||
if (dpy)
|
if (dpy)
|
||||||
close(ConnectionNumber(dpy));
|
close(ConnectionNumber(dpy));
|
||||||
|
|
Loading…
Reference in New Issue