Apply presets before registering notification

This commit is contained in:
HumblePresent 2021-11-26 13:22:58 -06:00
parent e7a21947e6
commit 030073fee7
1 changed files with 3 additions and 3 deletions

View File

@ -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)