X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/d836fcd6255b34dc19713d9e7b0b737fee738b59..fc5974a9c2838efa8dedbd350d9623e193ab71a3:/widgets/mpd.lua diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 02b5680..7996aeb 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -126,9 +126,9 @@ local function worker(args) end) end - helpers.newtimer("mpd", timeout, mpd.update) + mpd.timer = helpers.newtimer("mpd", timeout, mpd.update, true, true) - return mpd + return setmetatable(mpd, { __index = mpd.widget }) end return setmetatable(mpd, { __call = function(_, ...) return worker(...) end })