From ed0c3ceb2c39d0799cfe86894ad9dc2ff5e0e40c Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 18 Mar 2019 13:03:14 -0500 Subject: [PATCH] don't replace 'destroy' in existing notification, set destroy_cb (#2728) The value passed as `args.destroy` becomes `destroy_cb`, so use that name when updating an existing notification. Fixes #2721. Might also resolve #2692. --- lib/naughty/dbus.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/naughty/dbus.lua b/lib/naughty/dbus.lua index 7218f1e3..ff66a861 100644 --- a/lib/naughty/dbus.lua +++ b/lib/naughty/dbus.lua @@ -207,6 +207,7 @@ capi.dbus.connect_signal("org.freedesktop.Notifications", if notification then for k, v in pairs(args) do + if k == "destroy" then k = "destroy_cb" end notification[k] = v end else