Clear all pixmaps at start of parse, but not at each ${S} command.

This commit is contained in:
John Vogel 2014-05-28 20:38:36 -04:00
parent a447500477
commit 3546890578

4
bar.c
View File

@ -302,7 +302,8 @@ parse (char *text)
memset(&astack, 0, sizeof(area_stack_t)); memset(&astack, 0, sizeof(area_stack_t));
fill_rect(cur_mon->pixmap, gc[GC_CLEAR], 0, 0, bw, bh); for (monitor_t *m = monhead; m != NULL; m = m->next)
fill_rect(m->pixmap, gc[GC_CLEAR], 0, 0, m->width, bh);
for (;;) { for (;;) {
if (*p == '\0' || *p == '\n') if (*p == '\0' || *p == '\n')
@ -356,7 +357,6 @@ parse (char *text)
p++; p++;
pos_x = 0; pos_x = 0;
fill_rect(cur_mon->pixmap, gc[GC_CLEAR], 0, 0, cur_mon->width, bh);
break; break;
/* In case of error keep parsing after the closing } */ /* In case of error keep parsing after the closing } */