diff options
| -rw-r--r-- | dwm.c | 7 |
1 files changed, 2 insertions, 5 deletions
| @@ -947,18 +947,15 @@ drawbar(Monitor *m) | |||
| 947 | ch = *s; | 947 | ch = *s; |
| 948 | *s = '\0'; | 948 | *s = '\0'; |
| 949 | sw = TEXTW(text) - lrpad; | 949 | sw = TEXTW(text) - lrpad; |
| 950 | drw_text(drw, m->ww - statusw + x, 0, sw, bh, 0, text, 0); | ||
| 951 | x += sw; | 950 | x += sw; |
| 952 | *s = ch; | 951 | *s = ch; |
| 953 | text = s + 1; | 952 | text = s + 1; |
| 954 | } | 953 | } |
| 955 | } | 954 | } |
| 956 | sw = TEXTW(text) - lrpad + 2; | 955 | sw = TEXTW(text) - lrpad + 2; |
| 957 | drw_text(drw, m->ww - statusw + x, 0, sw, bh, 0, text, 0); | 956 | drw_text(drw, m->ww - statusw + x, 0, sw, bh, 0, "", 0); |
| 958 | sw = statusw; | 957 | sw = statusw; |
| 959 | } | 958 | tw = m->ww - drawstatusbar(m, bh, text); |
| 960 | if (m == selmon) { /* status is only drawn on selected monitor */ | ||
| 961 | tw = m->ww - drawstatusbar(m, bh, stext); | ||
| 962 | } | 959 | } |
| 963 | 960 | ||
| 964 | for (c = m->clients; c; c = c->next) { | 961 | for (c = m->clients; c; c = c->next) { |
