diff --git a/src/bar.c b/src/bar.c index 1fe4e0e..d2fd79f 100644 --- a/src/bar.c +++ b/src/bar.c @@ -238,7 +238,8 @@ updatetitlebar(Client *c) if(!c->title) c->title = strdup("WMFS"); - bar_refresh_color(c->tbar); + if(conf.titlebar.height) + bar_refresh_color(c->tbar); /* Draw the client title in the titlebar *logeek* */ if(conf.titlebar.height > 9) @@ -258,9 +259,9 @@ updatetitlebar(Client *c) draw_text(c->tbar->dr, pos_x, pos_y, ((c == sel) ? conf.titlebar.fg_focus : conf.titlebar.fg_normal), conf.titlebar.bg, 0, c->title); - } - bar_refresh(c->tbar); + bar_refresh(c->tbar); + } return; }