diff options
author | Sam Chudnick <sam@chudnick.com> | 2023-02-19 16:47:11 -0500 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2023-02-19 16:47:11 -0500 |
commit | 5b9d000853e295222336a7b62801801d78118dd8 (patch) | |
tree | b358f98519817cf7edc535a7f95c76170824f16e | |
parent | 209e388a5d06b464320c6bfc0c1fdcf97191a6c2 (diff) |
Fix bugs from status2d patch
-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) { |