diff --git a/lib/awful/hooks.lua.in b/lib/awful/hooks.lua.in index ac469fd92..5dca9a17f 100644 --- a/lib/awful/hooks.lua.in +++ b/lib/awful/hooks.lua.in @@ -112,6 +112,7 @@ for name, hook in pairs(capi.hooks) do end table.sort(delays) _M[name].timer = delays[1] + if not delays[1] then delays[1] = 0 end hook(delays[1], function (...) for i, callback in ipairs(_M[name].callbacks) do callback['counter'] = callback['counter'] + _M[name].timer