naughty: notification.run destroys the popup

Popups that have mouse button 1 tied to a function (run) will be
destroyed upon execution.

Signed-off-by: koniu <gkusnierz@gmail.com>
This commit is contained in:
koniu 2008-11-25 05:45:40 +00:00 committed by Julien Danjou
parent 5603d93da6
commit 03e08257fb
1 changed files with 4 additions and 1 deletions

View File

@ -259,7 +259,10 @@ function notify(args)
hooks.timer.register(timeout, die)
notification.die = die
local run = args.run or die
local run = function ()
if args.run then args.run() end
die()
end
local hover_destroy = function ()
if hover_timeout == 0 then die()