force appname comparison when searching for duplicates.
This commit is contained in:
parent
67427bbc18
commit
3706760c1b
4
dunst.c
4
dunst.c
@ -923,7 +923,7 @@ int init_notification(notification * n, int id)
|
|||||||
/* check if n is a duplicate */
|
/* check if n is a duplicate */
|
||||||
for (l_node * iter = notification_queue->head; iter; iter = iter->next) {
|
for (l_node * iter = notification_queue->head; iter; iter = iter->next) {
|
||||||
notification *orig = (notification *) iter->data;
|
notification *orig = (notification *) iter->data;
|
||||||
if (strcmp(orig->msg, n->msg) == 0) {
|
if (strcmp(orig->appname, n->appname) == 0 && strcmp(orig->msg, n->msg) == 0) {
|
||||||
orig->dup_count++;
|
orig->dup_count++;
|
||||||
free_notification(n);
|
free_notification(n);
|
||||||
return orig->id;
|
return orig->id;
|
||||||
@ -933,7 +933,7 @@ int init_notification(notification * n, int id)
|
|||||||
for (l_node * iter = displayed_notifications->head; iter;
|
for (l_node * iter = displayed_notifications->head; iter;
|
||||||
iter = iter->next) {
|
iter = iter->next) {
|
||||||
notification *orig = (notification *) iter->data;
|
notification *orig = (notification *) iter->data;
|
||||||
if (strcmp(orig->msg, n->msg) == 0) {
|
if (strcmp(orig->appname, n->appname) == 0 && strcmp(orig->msg, n->msg) == 0) {
|
||||||
orig->dup_count++;
|
orig->dup_count++;
|
||||||
orig->start = now;
|
orig->start = now;
|
||||||
free_notification(n);
|
free_notification(n);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user