X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8c2e1df0c3f648ed70e52fab38a176e2f924407b..bf3a9ba5efb874ad6370a3083afd409361e2912a:/widgets/mpd.lua?ds=inline diff --git a/widgets/mpd.lua b/widgets/mpd.lua index aad4dc8..d92c78f 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -129,7 +129,7 @@ local function worker(args) mpd.timer = helpers.newtimer("mpd", timeout, mpd.update, true, true) - return setmetatable(mpd, { __index = mpd.widget }) + return mpd end return setmetatable(mpd, { __call = function(_, ...) return worker(...) end })