awful.titlebar: set a default name if client's nil (FS#653)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-10-09 16:14:42 +02:00
parent d3464ce7fc
commit 8c109794d9
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ function update(c)
local widgets = c.titlebar.widgets
if widgets[3].title then
widgets[3].title.text = "<span font_desc='" .. data[c].font ..
"'> ".. util.escape(c.name) .. " </span>"
"'> ".. util.escape(c.name or "<unknown>") .. " </span>"
end
if widgets[3].appicon then
widgets[3].appicon.image = c.icon