This is an excerp from my rc.lua
:
testcfg ={}
testcfg.s = 1
testcfg.widget = widget({type = "textbox", name = "testcfg.widget", align = "right"})
testcfg.widget.text = testcfg.s
testcfg.command = function ()
testcfg.s = testcfg.s +1
testcfg.widget.text = testcfg.s
end
testcfg.widget:buttons({
button({ }, 1, function() testcfg.command() end)
})
This is a debug-widget I created to test the bug I have. I added it to my wibox and everything is working.
Then, sometimes, the button stops working. When I click on the widget, nothing happens. If I reload awesome, it still doesn't work. This happens for all widgets I have. Either every widget works or none.
When I call testcfg.command
through awesome-client
it works though.