Fix wibox.hierarchy:draw()

This accidentally called the draw callbacks with a nil argument instead of the
context. This was introduced in some badly done rebase, sorry! :-(

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2015-09-11 17:14:03 +02:00
parent ee001ce2f0
commit 5e577a10ab
1 changed files with 2 additions and 2 deletions

View File

@ -214,11 +214,11 @@ function hierarchy:draw(context, cr)
end
if not extra_arg2 then
xpcall(function()
func(widget, arg, cr, self:get_size())
func(widget, context, cr, self:get_size())
end, error_function)
else
xpcall(function()
func(widget, arg, extra_arg1, extra_arg2, cr, self:get_size())
func(widget, context, extra_arg1, extra_arg2, cr, self:get_size())
end, error_function)
end
end