bug fix: reset widget->width to 0

This commit is contained in:
Julien Danjou 2007-12-30 13:42:49 +01:00
parent 0df27e0f6a
commit f7263bbca8
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}