From 9a7a313719f21437e5f37824b7ab4c76fa15fbf8 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 8 Mar 2019 14:41:52 -0500 Subject: [PATCH] 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. --- lib/naughty/layout/legacy.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/naughty/layout/legacy.lua b/lib/naughty/layout/legacy.lua index f374ed0f..64572e30 100644 --- a/lib/naughty/layout/legacy.lua +++ b/lib/naughty/layout/legacy.lua @@ -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)