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:
parent
9d15c36b33
commit
194f6b2050
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue