awful.titlebar: Only use client name in titlebar if set

Signed-off-by: Espen Wiborg <espenhw@grumblesmurf.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Espen Wiborg 2009-01-14 20:29:21 +01:00 committed by Julien Danjou
parent 34f6321e8f
commit 1749ef672f
1 changed files with 5 additions and 1 deletions

View File

@ -51,7 +51,11 @@ function add(c, args)
local tb = capi.wibox(args) local tb = capi.wibox(args)
local title = capi.widget({ type = "textbox", align = "flex" }) local title = capi.widget({ type = "textbox", align = "flex" })
if c.name then
title.text = " " .. util.escape(c.name) .. " " title.text = " " .. util.escape(c.name) .. " "
else
title.text = nil
end
-- Redirect relevant events to the client the titlebar belongs to -- Redirect relevant events to the client the titlebar belongs to
local bts = local bts =