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:
parent
5603d93da6
commit
03e08257fb
|
@ -259,7 +259,10 @@ function notify(args)
|
||||||
hooks.timer.register(timeout, die)
|
hooks.timer.register(timeout, die)
|
||||||
notification.die = 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 ()
|
local hover_destroy = function ()
|
||||||
if hover_timeout == 0 then die()
|
if hover_timeout == 0 then die()
|
||||||
|
|
Loading…
Reference in New Issue