Apply presets before registering notification
This commit is contained in:
parent
e7a21947e6
commit
030073fee7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue