notification: Set the ID earlier.
Otherwise the signals were sent and the widgets created before the ID was set. This makes some attempt at detecting updated notifications error prone.
This commit is contained in:
parent
a91e2e7378
commit
4df8120acb
|
@ -580,6 +580,8 @@ local function create(args)
|
||||||
|
|
||||||
gtable.crush(n, notification, true)
|
gtable.crush(n, notification, true)
|
||||||
|
|
||||||
|
n.id = n.id or notification._gen_next_id()
|
||||||
|
|
||||||
-- Allow extensions to create override the preset with custom data
|
-- Allow extensions to create override the preset with custom data
|
||||||
naughty.emit_signal("request::preset", n, args)
|
naughty.emit_signal("request::preset", n, args)
|
||||||
|
|
||||||
|
@ -597,8 +599,6 @@ local function create(args)
|
||||||
n:set_timeout(n._private.timeout or n.preset.timeout)
|
n:set_timeout(n._private.timeout or n.preset.timeout)
|
||||||
end
|
end
|
||||||
|
|
||||||
n.id = notification._gen_next_id()
|
|
||||||
|
|
||||||
return n
|
return n
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue