From c30fe5b166039fe8ddd0d76d75c433b96af640f8 Mon Sep 17 00:00:00 2001 From: Salorium Date: Thu, 28 May 2015 15:50:36 +0200 Subject: [PATCH] wibox.widget.systray: fix error while drawing widget > bad argument #2 to 'systray' (number has no integer representation) Closes https://github.com/awesomeWM/awesome/pull/247 --- lib/wibox/widget/systray.lua.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wibox/widget/systray.lua.in b/lib/wibox/widget/systray.lua.in index d29c983e2..f2afefced 100644 --- a/lib/wibox/widget/systray.lua.in +++ b/lib/wibox/widget/systray.lua.in @@ -41,7 +41,8 @@ function systray:draw(wibox, cr, width, height) else base = in_dir / num_entries end - capi.awesome.systray(wibox.drawin, x, y, base, is_rotated, bg, reverse, spacing) + capi.awesome.systray(wibox.drawin, math.ceil(x), math.ceil(y), + base, is_rotated, bg, reverse, spacing) end function systray:fit(width, height)