From acffbdc188107c2846ef7b55251bbd6c3fff6d41 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Wed, 3 Aug 2011 06:26:47 +0200 Subject: [PATCH] Infobar: fix selbar (above statustext) --- src/infobar.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/infobar.c b/src/infobar.c index 2958d9c..d510d3f 100644 --- a/src/infobar.c +++ b/src/infobar.c @@ -192,7 +192,7 @@ void infobar_draw_selbar(InfoBar *i) { char *str = NULL; - int s, sc = i->screen; + int sc = i->screen; if(!conf.bars.selbar) return; @@ -215,9 +215,7 @@ infobar_draw_selbar(InfoBar *i) strcat(str, "..."); } - if((s = (textw(str ? str : sel->title) + PAD)) > i->selbar->geo.width) - barwin_resize(i->selbar, s, i->geo.height - 2); - + barwin_resize(i->selbar, textw(str ? str : sel->title) + PAD, i->geo.height - 2); barwin_move(i->selbar, ((conf.layout_placement) ? (i->tags_board->geo.x + i->tags_board->geo.width + (PAD >> 1))