awful.widget: handle clients without title on tasklist widget

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Damien Leone 2009-02-16 14:56:42 +01:00 committed by Julien Danjou
parent 829b30c8a6
commit d2af75691e
1 changed files with 2 additions and 2 deletions

View File

@ -325,9 +325,9 @@ local function widget_tasklist_label_common(c, args)
status_image = capi.image(floating_icon)
end
if c.minimized then
name = util.escape(c.icon_name) or ""
name = util.escape(c.icon_name) or util.escape("<untitled>")
else
name = util.escape(c.name) or ""
name = util.escape(c.name) or util.escape("<untitled>")
end
if capi.client.focus == c then
bg = bg_focus