From 17bd5fb0364df70de4133117ff99a77181dacd0f Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 16 Sep 2021 17:22:33 -0700 Subject: [PATCH] naughty: Pass the notification object to the action "invoked" signal. Fix #3384 --- lib/naughty/list/actions.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/naughty/list/actions.lua b/lib/naughty/list/actions.lua index 34deaf68e..c7664ce84 100644 --- a/lib/naughty/list/actions.lua +++ b/lib/naughty/list/actions.lua @@ -337,7 +337,10 @@ local function new(_, args) update_style(wdg) wdg._private.default_buttons = gtable.join( - abutton({ }, 1, function(a) a:invoke(args.notification) end) + abutton({ }, 1, function(a) + local notif = wdg._private.notification or args.notification + a:invoke(notif) + end) ) return wdg