Use awful.util.round in wibox.layout.flex

This commit is contained in:
Daniel Hahler 2015-08-12 14:10:10 +02:00
parent 977bd9a60e
commit f5ed8848e7
1 changed files with 1 additions and 4 deletions

View File

@ -10,13 +10,10 @@ local widget_base = require("wibox.widget.base")
local table = table
local pairs = pairs
local floor = math.floor
local round = require("awful.util").round
local flex = {}
local function round(x)
return floor(x + 0.5)
end
--- Draw a flex layout. Each widget gets an equal share of the available space.
-- @param wibox The wibox that this widget is drawn to.
-- @param cr The cairo context to use.