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.
This commit is contained in:
Sascha Kruse 2012-07-16 23:33:43 +02:00
parent 4507b704e0
commit ab0404c30d

View File

@ -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;