From 75b4f04251bc529783f026655bcfa4a15613149c Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Tue, 24 Feb 2009 18:39:21 +0100 Subject: [PATCH] lib/awful/hooks: fix removal of last timer hook Signed-off-by: Gregor Best Signed-off-by: Julien Danjou --- lib/awful/hooks.lua.in | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/awful/hooks.lua.in b/lib/awful/hooks.lua.in index ac469fd9..5dca9a17 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