From 5e577a10abebfb4280ff2497139b603b76ce67c1 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 11 Sep 2015 17:14:03 +0200 Subject: [PATCH] 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 --- lib/wibox/hierarchy.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wibox/hierarchy.lua b/lib/wibox/hierarchy.lua index 5b44c186b..7ad7f4fd0 100644 --- a/lib/wibox/hierarchy.lua +++ b/lib/wibox/hierarchy.lua @@ -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