naughty: Destroy the notification when an action is executed.
Whoops, I changed the name of the method at some point and never updated this instance. It was also not clausing the notification like people expect.
This commit is contained in:
parent
4aaf6ea730
commit
9a7a313719
|
@ -402,8 +402,14 @@ function naughty.default_notification_handler(notification, args)
|
|||
local action_width = w + 2 * margin
|
||||
|
||||
actionmarginbox:buttons(gtable.join(
|
||||
button({ }, 1, function() action:invoke() end),
|
||||
button({ }, 3, function() action:invoke() end)
|
||||
button({ }, 1, function()
|
||||
action:invoke()
|
||||
notification:destroy()
|
||||
end),
|
||||
button({ }, 3, function()
|
||||
action:invoke()
|
||||
notification:destroy()
|
||||
end)
|
||||
))
|
||||
actionslayout:add(actionmarginbox)
|
||||
|
||||
|
|
Loading…
Reference in New Issue