diff options
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -240,7 +240,7 @@ static const char broken[] = "broken"; | |||
| 240 | static char stext[256]; | 240 | static char stext[256]; |
| 241 | static int screen; | 241 | static int screen; |
| 242 | static int sw, sh; /* X display screen geometry width, height */ | 242 | static int sw, sh; /* X display screen geometry width, height */ |
| 243 | static int bh, blw = 0; /* bar geometry */ | 243 | static int bh; /* bar height */ |
| 244 | static int lrpad; /* sum of left and right padding for text */ | 244 | static int lrpad; /* sum of left and right padding for text */ |
| 245 | static int (*xerrorxlib)(Display *, XErrorEvent *); | 245 | static int (*xerrorxlib)(Display *, XErrorEvent *); |
| 246 | static unsigned int numlockmask = 0; | 246 | static unsigned int numlockmask = 0; |
| @@ -440,7 +440,7 @@ buttonpress(XEvent *e) | |||
| 440 | if (i < LENGTH(tags)) { | 440 | if (i < LENGTH(tags)) { |
| 441 | click = ClkTagBar; | 441 | click = ClkTagBar; |
| 442 | arg.ui = 1 << i; | 442 | arg.ui = 1 << i; |
| 443 | } else if (ev->x < x + blw) | 443 | } else if (ev->x < x + TEXTW(selmon->ltsymbol)) |
| 444 | click = ClkLtSymbol; | 444 | click = ClkLtSymbol; |
| 445 | else if (ev->x > selmon->ww - (int)TEXTW(stext)) | 445 | else if (ev->x > selmon->ww - (int)TEXTW(stext)) |
| 446 | click = ClkStatusText; | 446 | click = ClkStatusText; |
| @@ -731,7 +731,7 @@ drawbar(Monitor *m) | |||
| 731 | urg & 1 << i); | 731 | urg & 1 << i); |
| 732 | x += w; | 732 | x += w; |
| 733 | } | 733 | } |
| 734 | w = blw = TEXTW(m->ltsymbol); | 734 | w = TEXTW(m->ltsymbol); |
| 735 | drw_setscheme(drw, scheme[SchemeNorm]); | 735 | drw_setscheme(drw, scheme[SchemeNorm]); |
| 736 | x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); | 736 | x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); |
| 737 | 737 | ||
