Merge pull request #3519 from HumblePresent/fix_notif_register
Apply presets before registering notification
This commit is contained in:
commit
70524e72fa
|
@ -1029,14 +1029,14 @@ local function create(args)
|
||||||
|
|
||||||
n.id = n.id or notification._gen_next_id()
|
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.
|
-- The rules are attached to this.
|
||||||
if naughty._has_preset_handler then
|
if naughty._has_preset_handler then
|
||||||
naughty.emit_signal("request::preset", n, "new", args)
|
naughty.emit_signal("request::preset", n, "new", args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Register the notification before requesting a widget
|
||||||
|
n:emit_signal("new", args)
|
||||||
|
|
||||||
-- Let all listeners handle the actual visual aspects
|
-- 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
|
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)
|
naughty.emit_signal("request::display" , n, "new", args)
|
||||||
|
|
Loading…
Reference in New Issue