awful.widget.tasklist: reset queued_update before tasklist_update

This will reset it properly in case of any error in the callback itself.
This commit is contained in:
Daniel Hahler 2015-07-13 23:36:00 +02:00
parent 22624284a2
commit f060fc055f

View file

@ -161,8 +161,8 @@ function tasklist.new(screen, filter, buttons, style, update_function, base_widg
-- Add a delayed callback for the first update.
if not queued_update then
timer.delayed_call(function()
queued_update = false
tasklist_update(screen, w, buttons, filter, data, style, uf)
queued_update = nil
end)
queued_update = true
end