From f6d08274a63ef187b26d2d7e7163416f2adda0c8 Mon Sep 17 00:00:00 2001 From: Barlik Date: Sat, 5 Dec 2015 10:15:20 +0000 Subject: [PATCH] Use integer size when creating titlebar Closes https://github.com/awesomeWM/awesome/pull/584. --- lib/awful/titlebar.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful/titlebar.lua b/lib/awful/titlebar.lua index 9835c8d0..f93f6437 100644 --- a/lib/awful/titlebar.lua +++ b/lib/awful/titlebar.lua @@ -9,6 +9,7 @@ local error = error local type = type +local util = require("awful.util") local abutton = require("awful.button") local aclient = require("awful.client") local atooltip = require("awful.tooltip") @@ -64,7 +65,7 @@ end local function new(c, args) local args = args or {} 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) -- Make sure that there is never more than one titlebar for any given client