Use awful.util.round in wibox.layout.flex
This commit is contained in:
parent
977bd9a60e
commit
f5ed8848e7
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue