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
This commit is contained in:
Salorium 2015-05-28 15:50:36 +02:00 committed by Daniel Hahler
parent c2842fe8f3
commit c30fe5b166
1 changed files with 2 additions and 1 deletions

View File

@ -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)