From 56c380ea1478801283db7a7fca484d13313bdb42 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Mon, 20 Oct 2008 03:25:28 +0200 Subject: [PATCH] titlebar: Fix refresh (only if there is a titlebar... mistake) --- src/bar.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }