X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ea4e4f41b35b37fc6b529c625d956c11d108a403..32eddd514f8ccc35eeaa128a441f6a47708e6a04:/widgets/mem.lua?ds=sidebyside diff --git a/widgets/mem.lua b/widgets/mem.lua index 443047c..e96dc1b 100644 --- a/widgets/mem.lua +++ b/widgets/mem.lua @@ -50,7 +50,7 @@ local function worker(args) newtimer("mem", timeout, update) - return mem.widget + return setmetatable(mem, { __index = mem.widget }) end return setmetatable(mem, { __call = function(_, ...) return worker(...) end })