diff --git a/lib/awful/hooks.lua.in b/lib/awful/hooks.lua.in index 5524e141a..721dfcd78 100644 --- a/lib/awful/hooks.lua.in +++ b/lib/awful/hooks.lua.in @@ -54,7 +54,7 @@ for name, hook in pairs(capi.hooks) do _M[name] = {} if name == 'timer' then _M[name].register = function (time, f, runnow) - if type(time) ~= 'number' or type(f) ~= 'function' or time < 0 then + if type(time) ~= 'number' or type(f) ~= 'function' or time <= 0 then return end local new_timer