X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/49a4df385e953156e6d1e2ee0bcfd07d8501d0f4..176f4d75e1749df77aa8929cb79b4865c2fddaa5:/widgets/fs.lua diff --git a/widgets/fs.lua b/widgets/fs.lua index 312a5e3..efd31fb 100644 --- a/widgets/fs.lua +++ b/widgets/fs.lua @@ -125,7 +125,7 @@ local function worker(args) helpers.newtimer(partition, timeout, fs.update) - return fs + return setmetatable(fs, { __index = fs.widget }) end return setmetatable(fs, { __call = function(_, ...) return worker(...) end })