Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

Sorry it won't be a real answer, I haven't enough reputation to comment...

Your code works for me either, I installed it for about three hour, clicked it over 100 times, restarted Awesome, etc. I guess you'll have to find some more clues about this.

Try to launch a nested X session with Xephyr (Doc on the awesome wiki) to have some debug traces. Alternatively, you can also launch your normal session redirecting any error message in a file. Here is what I use in my .xinitrc:

ck-launch-session /bin/bash --login -c 'awesome' > ~/.xsession-errors 2>&1
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.