Merge pull request #401 from bebehei/flickerless-replace

Update notification attributes upon direct replace
This commit is contained in:
Nikos Tsipinakis 2017-10-06 22:32:49 +03:00 committed by GitHub
commit a56bdd18c1

View File

@ -620,6 +620,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;
}
@ -631,6 +634,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;
}