X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ddbf283f0ebbc6772d485fe76c5dccf338d3b837..43cd98510a33e9f2d50d315a9bfc31ff8d3062c9:/widgets/fs.lua diff --git a/widgets/fs.lua b/widgets/fs.lua index e01aab8..4e9f04b 100644 --- a/widgets/fs.lua +++ b/widgets/fs.lua @@ -124,7 +124,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 })