From d956b5411b5432165c3fe9124503deb37f830294 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 4 Mar 2019 22:48:21 -0500 Subject: [PATCH] naughty: Initialize the action `notification` property --- lib/naughty/notification.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/naughty/notification.lua b/lib/naughty/notification.lua index aa4145fd..fed40fa8 100644 --- a/lib/naughty/notification.lua +++ b/lib/naughty/notification.lua @@ -530,6 +530,12 @@ local function create(args) -- using the shorthand `if #notif.actions > 0 then` private.actions = private.actions or {} + -- Make sure the action are for this notification. Sharing actions with + -- multiple notification is not supported. + for _, a in ipairs(private.actions) do + a.notification = n + end + -- It's an automatic property n.is_expired = false