From b1e7d3c22c07a5a35e8472e4898e87815fce680a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 27 Feb 2016 13:58:48 +0100 Subject: [PATCH] Call check_widget() in :setup() I just spent too much time tracking down a bug that happened while drawing a widget. This is the reason why we should apply sanity checks while widgets are constructed, so that we get a useful backtrace. Signed-off-by: Uli Schlachter --- lib/wibox/widget/base.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/wibox/widget/base.lua b/lib/wibox/widget/base.lua index c528ad1d2..6a7808ce5 100644 --- a/lib/wibox/widget/base.lua +++ b/lib/wibox/widget/base.lua @@ -390,6 +390,7 @@ local function drill(ids, content) e, id2 = drill(ids, v) widgets[k] = e end + base.check_widget(widgets[k]) -- Place the widget in the access table if id2 then