fix no title

This commit is contained in:
sewn 2024-07-04 20:36:16 +03:00
parent 1ef3e3a0dc
commit bee0963d74
No known key found for this signature in database

2
dam.c
View file

@ -169,7 +169,7 @@ bar_draw(Bar *bar)
}
if ((w = bar->width - tw - x) > bar->height) {
if (bar->title) {
if (*bar->title != '\0') {
drwl_setscheme(bar->drw, colors[bar->selected ? SchemeSel : SchemeNorm]);
drwl_text(bar->drw, x, 0, w, bar->height, bar->lrpad / 2, bar->title, 0);
} else {