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:
parent
d3464ce7fc
commit
8c109794d9
|
@ -145,7 +145,7 @@ function update(c)
|
||||||
local widgets = c.titlebar.widgets
|
local widgets = c.titlebar.widgets
|
||||||
if widgets[3].title then
|
if widgets[3].title then
|
||||||
widgets[3].title.text = "<span font_desc='" .. data[c].font ..
|
widgets[3].title.text = "<span font_desc='" .. data[c].font ..
|
||||||
"'> ".. util.escape(c.name) .. " </span>"
|
"'> ".. util.escape(c.name or "<unknown>") .. " </span>"
|
||||||
end
|
end
|
||||||
if widgets[3].appicon then
|
if widgets[3].appicon then
|
||||||
widgets[3].appicon.image = c.icon
|
widgets[3].appicon.image = c.icon
|
||||||
|
|
Loading…
Reference in New Issue