diff --git a/lib/naughty/notification.lua b/lib/naughty/notification.lua index 5004cfc71..64c9e1845 100644 --- a/lib/naughty/notification.lua +++ b/lib/naughty/notification.lua @@ -580,6 +580,8 @@ local function create(args) gtable.crush(n, notification, true) + n.id = n.id or notification._gen_next_id() + -- Allow extensions to create override the preset with custom data naughty.emit_signal("request::preset", n, args) @@ -597,8 +599,6 @@ local function create(args) n:set_timeout(n._private.timeout or n.preset.timeout) end - n.id = notification._gen_next_id() - return n end