X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ea4e4f41b35b37fc6b529c625d956c11d108a403..fc5974a9c2838efa8dedbd350d9623e193ab71a3:/widgets/mem.lua 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 })