awful.titlebar: set correct height

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-24 11:46:12 +02:00
parent 876602ea91
commit 62d0d08caf
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ local setmetatable = setmetatable
local type = type
local capi =
{
awesome = awesome,
wibox = wibox,
widget = widget,
client = client,
@ -60,6 +61,7 @@ end
function add(c, args)
if not c or (c.type ~= "normal" and c.type ~= "dialog") then return end
if not args then args = {} end
if not args.height then args.height = capi.awesome.font_height * 1.5 end
local theme = beautiful.get()
-- Store colors
data[c] = {}