From 194f6b20501ae58333264fcb7cc384e18a6e6b56 Mon Sep 17 00:00:00 2001 From: koniu Date: Tue, 25 Aug 2009 00:19:46 +0100 Subject: [PATCH] naughty: fix hover_timeout Fixes regression since e899ca769610c01073c148112b8e8e5bb72fba45. Signed-off-by: koniu Signed-off-by: Julien Danjou --- lib/naughty.lua.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index a4809df36..c65f8fe73 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -314,8 +314,11 @@ function notify(args) local hover_destroy = function () if hover_timeout == 0 then die() - elseif timer_die then - timer_die:stop() + else + if notification.timer then notification.timer:stop() end + notification.timer = capi.timer { timeout = hover_timeout } + notification.timer:add_signal("timeout", die) + notification.timer:start() end end