diff options
| author | xyz <gky44px1999@gmail.com> | 2022-10-05 17:31:29 -0700 |
|---|---|---|
| committer | xyz <gky44px1999@gmail.com> | 2022-10-05 17:31:29 -0700 |
| commit | 82946a0ce3a1e6f44847b63509b178aa9dd0b8fd (patch) | |
| tree | 2612dc3ea240ee055a0dcef2f1bf704da37f77a3 /dwm.c | |
| parent | 161a233be22d69ada3835fd1025f4b3d08aa3f5e (diff) | |
| parent | 50ad171eea9db5ccb36fce2592e047c3282975ff (diff) | |
merge upstream
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -241,7 +241,7 @@ static const char broken[] = "broken"; static char stext[256]; static int screen; 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 (*xerrorxlib)(Display *, XErrorEvent *); static unsigned int numlockmask = 0; @@ -441,7 +441,7 @@ buttonpress(XEvent *e) if (i < LENGTH(tags)) { click = ClkTagBar; arg.ui = 1 << i; - } else if (ev->x < x + blw) + } else if (ev->x < x + TEXTW(selmon->ltsymbol)) click = ClkLtSymbol; else if (ev->x > selmon->ww - (int)TEXTW(stext)) click = ClkStatusText; @@ -732,7 +732,7 @@ drawbar(Monitor *m) urg & 1 << i); x += w; } - w = blw = TEXTW(m->ltsymbol); + w = TEXTW(m->ltsymbol); drw_setscheme(drw, scheme[SchemeNorm]); x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); @@ -1640,8 +1640,6 @@ sigchld(int unused) void spawn(const Arg *arg) { - if (arg->v == dmenucmd) - dmenumon[0] = '0' + selmon->num; if (fork() == 0) { if (dpy) close(ConnectionNumber(dpy)); |
