From f3f01b82d97c7d36ad55893e71b944c3f10b152c Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 7 Sep 2011 21:41:47 +0200 Subject: [PATCH] naughty: Fix replaces_id Replacing a popup only worked when it wasn't the newest notification we had. Fix this to also work if no new notification showed up in between. Signed-off-by: Uli Schlachter --- lib/naughty.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 49b52b42..6762d071 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -324,7 +324,7 @@ function notify(args) destroy(obj) end -- ... may use its ID - if args.replaces_id < counter then + if args.replaces_id <= counter then notification.id = args.replaces_id else counter = counter + 1