awful.titlebar: set correct height
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
876602ea91
commit
62d0d08caf
|
@ -13,6 +13,7 @@ local setmetatable = setmetatable
|
||||||
local type = type
|
local type = type
|
||||||
local capi =
|
local capi =
|
||||||
{
|
{
|
||||||
|
awesome = awesome,
|
||||||
wibox = wibox,
|
wibox = wibox,
|
||||||
widget = widget,
|
widget = widget,
|
||||||
client = client,
|
client = client,
|
||||||
|
@ -60,6 +61,7 @@ end
|
||||||
function add(c, args)
|
function add(c, args)
|
||||||
if not c or (c.type ~= "normal" and c.type ~= "dialog") then return end
|
if not c or (c.type ~= "normal" and c.type ~= "dialog") then return end
|
||||||
if not args then args = {} 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()
|
local theme = beautiful.get()
|
||||||
-- Store colors
|
-- Store colors
|
||||||
data[c] = {}
|
data[c] = {}
|
||||||
|
|
Loading…
Reference in New Issue