From e8f152b5d0662d09f9d747fd01da934b01783a6c Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Fri, 6 Oct 2017 13:31:26 +0200 Subject: [PATCH] Update notification attributes upon direct replace --- src/notification.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/notification.c b/src/notification.c index 18be083..1d446c9 100644 --- a/src/notification.c +++ b/src/notification.c @@ -623,6 +623,9 @@ bool notification_replace_by_id(notification *new) notification *old = iter->data; if (old->id == new->id) { iter->data = new; + new->start = time(NULL); + new->dup_count = old->dup_count; + notification_run_script(new); history_push(old); return true; } @@ -634,6 +637,7 @@ bool notification_replace_by_id(notification *new) notification *old = iter->data; if (old->id == new->id) { iter->data = new; + new->dup_count = old->dup_count; history_push(old); return true; }