mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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 <psychon@znc.in>
This commit is contained in:
parent
cf3c81fa9e
commit
b1e7d3c22c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue