diff --git a/lib/naughty/core.lua b/lib/naughty/core.lua index 0b05bd3df..5ea59e4ab 100644 --- a/lib/naughty/core.lua +++ b/lib/naughty/core.lua @@ -51,6 +51,10 @@ notifications, e.g. args.text = 'prefix: ' .. args.text return args end + To reject a notification return `nil` from the callback. + If the notification is a freedesktop notification received via DBUS, you can + access the freedesktop hints via `args.freedesktop_hints` if any where + specified. @tfield table presets Notification presets. See `config.presets`. diff --git a/lib/naughty/dbus.lua b/lib/naughty/dbus.lua index 534c98ac2..c3cd75929 100644 --- a/lib/naughty/dbus.lua +++ b/lib/naughty/dbus.lua @@ -181,6 +181,7 @@ capi.dbus.connect_signal("org.freedesktop.Notifications", if expire and expire > -1 then args.timeout = expire / 1000 end + args.freedesktop_hints = hints notification = naughty.notify(args) return "u", notification.id end