diff --git a/lib/awful/widget.lua.in b/lib/awful/widget.lua.in
index acaca8e47..938b269d0 100644
--- a/lib/awful/widget.lua.in
+++ b/lib/awful/widget.lua.in
@@ -122,7 +122,8 @@ function taglist.label.all(t, args)
local taglist_squares_sel = args.squares_sel or theme.taglist_squares_sel
local taglist_squares_unsel = args.squares_unsel or theme.taglist_squares_unsel
local taglist_squares_resize = theme.taglist_squares_resize or args.squares_resize or "true"
- local text
+ local font = args.font or theme.taglist_font or theme.font or ""
+ local text = ""
local background = ""
local sel = capi.client.focus
local bg_color = nil
@@ -149,10 +150,11 @@ function taglist.label.all(t, args)
end
end
if bg_color and fg_color then
- text = " "..util.escape(t.name).." "
+ text = text .. " "..util.escape(t.name).." "
else
- text = " "..util.escape(t.name).." "
+ text = text .. " "..util.escape(t.name).." "
end
+ text = text .. ""
return text
end
@@ -269,8 +271,9 @@ local function widget_tasklist_label_common(c, args)
local bg_urgent = args.bg_urgent or theme.tasklist_bg_urgent or theme.bg_urgent
local floating_icon = args.floating_icon or theme.tasklist_floating_icon
local floating_icon_align = args.floating_icon_align or theme.tasklist_floating_icon_align or "right"
+ local font = args.font or theme.tasklist_font or theme.font or ""
local bg = nil
- local text = ""
+ local text = ""
local name
if c.floating and floating_icon then
text = text..""
@@ -293,6 +296,7 @@ local function widget_tasklist_label_common(c, args)
else
text = text .. name
end
+ text = text .. ""
return text, bg
end