awful: check for name not nil

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-12 18:04:02 +02:00
parent 5211448bd8
commit 905d8e78a1
1 changed files with 2 additions and 2 deletions

View File

@ -1226,9 +1226,9 @@ local function widget_tasklist_label_common(c, args)
text = "<bg image=\"@AWESOME_ICON_PATH@/tasklist/floatingw.png\" align=\"right\"/>"
end
if c.hidden then
name = escape(c.icon_name)
name = escape(c.icon_name) or ""
else
name = escape(c.name)
name = escape(c.name) or ""
end
if capi.client.focus == c then
text = text .. " <bg color='"..bg_focus.."'/><span color='"..fg_focus.."'>"..name.."</span> "