From 030073fee7796cdea614e614882c77c2754a774e Mon Sep 17 00:00:00 2001 From: HumblePresent <60856003+HumblePresent@users.noreply.github.com> Date: Fri, 26 Nov 2021 13:22:58 -0600 Subject: [PATCH] Apply presets before registering notification --- lib/naughty/notification.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/naughty/notification.lua b/lib/naughty/notification.lua index 09623b033..aaad0588c 100644 --- a/lib/naughty/notification.lua +++ b/lib/naughty/notification.lua @@ -1029,14 +1029,14 @@ local function create(args) n.id = n.id or notification._gen_next_id() - -- Register the notification before requesting a widget - n:emit_signal("new", args) - -- The rules are attached to this. if naughty._has_preset_handler then naughty.emit_signal("request::preset", n, "new", args) end + -- Register the notification before requesting a widget + n:emit_signal("new", args) + -- Let all listeners handle the actual visual aspects if (not n.ignore) and ((not n.preset) or n.preset.ignore ~= true) and (not get_suspended(n)) then naughty.emit_signal("request::display" , n, "new", args)