Use integer size when creating titlebar

Closes https://github.com/awesomeWM/awesome/pull/584.
This commit is contained in:
Barlik 2015-12-05 10:15:20 +00:00 committed by Daniel Hahler
parent 742cbd7122
commit f6d08274a6
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
local error = error local error = error
local type = type local type = type
local util = require("awful.util")
local abutton = require("awful.button") local abutton = require("awful.button")
local aclient = require("awful.client") local aclient = require("awful.client")
local atooltip = require("awful.tooltip") local atooltip = require("awful.tooltip")
@ -64,7 +65,7 @@ end
local function new(c, args) local function new(c, args)
local args = args or {} local args = args or {}
local position = args.position or "top" local position = args.position or "top"
local size = args.size or beautiful.get_font_height(args.font) * 1.5 local size = args.size or util.round(beautiful.get_font_height(args.font) * 1.5)
local d = get_titlebar_function(c, position)(c, size) local d = get_titlebar_function(c, position)(c, size)
-- Make sure that there is never more than one titlebar for any given client -- Make sure that there is never more than one titlebar for any given client