awful.titlebar: do not build args

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-12 17:14:44 +02:00
parent ebab2b7707
commit 39f50d5b06
1 changed files with 1 additions and 5 deletions

View File

@ -46,11 +46,7 @@ function add(c, args)
data[c].bg_focus = args.bg_focus or theme.titlebar_bg_focus or theme.bg_focus
data[c].width = args.width
-- Built args
local targs = {}
if args.fg then targs.fg = args.fg end
if args.bg then targs.bg = args.bg end
local tb = capi.wibox(targs)
local tb = capi.wibox(args)
local title = capi.widget({ type = "textbox", name = "title", align = "flex" })
title.text = " " .. util.escape(c.name) .. " "