diff --git a/lib/wibox/widget/template.lua b/lib/wibox/widget/template.lua index a64f4940d..875f1c3de 100644 --- a/lib/wibox/widget/template.lua +++ b/lib/wibox/widget/template.lua @@ -40,7 +40,9 @@ function template:fit(context, width, height) end function template:draw(...) - return self._private.widget:draw(...) + if type(self._private.widget.draw) == "function" then + return self._private.widget:draw(...) + end end function template:_do_update_now()