From f7263bbca803f2e5a6041dfc0a9df2734d13a651 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 30 Dec 2007 13:42:49 +0100 Subject: [PATCH] bug fix: reset widget->width to 0 --- widgets/taglist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widgets/taglist.c b/widgets/taglist.c index 837865c31..86b0e592e 100644 --- a/widgets/taglist.c +++ b/widgets/taglist.c @@ -71,6 +71,8 @@ taglist_draw(Widget *widget, flagsize = (vscreen.font->height + 2) / 4; + widget->width = 0; + for(tag = vscreen.tags; tag; tag = tag->next) widget->width += textwidth(vscreen.font, tag->name); @@ -100,6 +102,7 @@ taglist_draw(Widget *widget, sel && is_client_tagged(sel, tag), colors[ColFG]); widget->width += w; } + return widget->width; }