X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a00417d8011690d977cbdab1f1378ec369e5f355..32eddd514f8ccc35eeaa128a441f6a47708e6a04:/widgets/mpd.lua?ds=inline diff --git a/widgets/mpd.lua b/widgets/mpd.lua index ac4fd5f..7996aeb 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -128,7 +128,7 @@ local function worker(args) 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 })