Skip to content

Commit

Permalink
Merge pull request #3519 from HumblePresent/fix_notif_register
Browse files Browse the repository at this point in the history
Apply presets before registering notification
  • Loading branch information
Aire-One committed Dec 9, 2021
2 parents 1932bd0 + 030073f commit 70524e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/naughty/notification.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70524e7

Please sign in to comment.