naughty: fix hover_timeout

Fixes regression since e899ca7696.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
koniu 2009-08-25 00:19:46 +01:00 committed by Julien Danjou
parent 9d15c36b33
commit 194f6b2050
1 changed files with 5 additions and 2 deletions

View File

@ -314,8 +314,11 @@ function notify(args)
local hover_destroy = function () local hover_destroy = function ()
if hover_timeout == 0 then if hover_timeout == 0 then
die() die()
elseif timer_die then else
timer_die:stop() 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
end end