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:
Emmanuel Lepage Vallee 2019-03-08 14:41:52 -05:00
parent 4aaf6ea730
commit 9a7a313719
1 changed files with 8 additions and 2 deletions

View File

@ -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)