X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/49a4df385e953156e6d1e2ee0bcfd07d8501d0f4..5d7c6078d11a697c4ea2a72300355d18ffd47d84:/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 })