diff --git a/lib/naughty/dbus.lua b/lib/naughty/dbus.lua index 98b36a7f4..bc062b3a2 100644 --- a/lib/naughty/dbus.lua +++ b/lib/naughty/dbus.lua @@ -341,6 +341,8 @@ function notif_methods.Notify(sender, object_path, interface, method, parameters args._unique_sender = sender notification = nnotif(args) + + notification:connect_signal("destroyed", function(_, r) args.destroy(r) end) end invocation:return_value(GLib.Variant("(u)", { notification.id }))