Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

force appname comparison when searching for duplicates.

  • Loading branch information...
commit 3706760c1b4d59fa5459bef1ecee04c3f28c244f 1 parent 67427bb
@progandy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 dunst.c
View
4 dunst.c
@@ -923,7 +923,7 @@ int init_notification(notification * n, int id)
/* check if n is a duplicate */
for (l_node * iter = notification_queue->head; iter; iter = iter->next) {
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++;
free_notification(n);
return orig->id;
@@ -933,7 +933,7 @@ int init_notification(notification * n, int id)
for (l_node * iter = displayed_notifications->head; iter;
iter = iter->next) {
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->start = now;
free_notification(n);
Please sign in to comment.
Something went wrong with that request. Please try again.