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:
parent
4507b704e0
commit
ab0404c30d
2
dunst.c
2
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user