mirror of
https://github.com/awesomeWM/awesome
synced 2024-09-29 17:37:02 +02:00
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
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue