bug fix: reset widget->width to 0
This commit is contained in:
parent
0df27e0f6a
commit
f7263bbca8
|
@ -71,6 +71,8 @@ taglist_draw(Widget *widget,
|
||||||
|
|
||||||
flagsize = (vscreen.font->height + 2) / 4;
|
flagsize = (vscreen.font->height + 2) / 4;
|
||||||
|
|
||||||
|
widget->width = 0;
|
||||||
|
|
||||||
for(tag = vscreen.tags; tag; tag = tag->next)
|
for(tag = vscreen.tags; tag; tag = tag->next)
|
||||||
widget->width += textwidth(vscreen.font, tag->name);
|
widget->width += textwidth(vscreen.font, tag->name);
|
||||||
|
|
||||||
|
@ -100,6 +102,7 @@ taglist_draw(Widget *widget,
|
||||||
sel && is_client_tagged(sel, tag), colors[ColFG]);
|
sel && is_client_tagged(sel, tag), colors[ColFG]);
|
||||||
widget->width += w;
|
widget->width += w;
|
||||||
}
|
}
|
||||||
|
|
||||||
return widget->width;
|
return widget->width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue