From ab0404c30dd05b484f3c87123dc0d25dc09f175a Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Mon, 16 Jul 2012 23:33:43 +0200 Subject: [PATCH] fix removing notifications from notification_queue close_notification_by_id doesn't properly remove notifications from notification_queue which causes an endless-loop in move_all_notifications_to_history. --- dunst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dunst.c b/dunst.c index 0ca5e79..a5f13f7 100644 --- a/dunst.c +++ b/dunst.c @@ -750,7 +750,7 @@ int close_notification_by_id(int id, int reason) for (iter = notification_queue->head; iter; iter = iter->next) { notification *n = (notification *) iter->data; if (n->id == id) { - l_move(displayed_notifications, notification_history, + l_move(notification_queue, notification_history, iter); target = n; break;