Fix notification seeping when displayed isn't full

Only if the queue is full, dunst should swap the most important
notifications from waiting with the least important notifications from
displayed.
This commit is contained in:
Benedikt Heine 2018-11-18 03:12:53 +01:00
parent 0b7a31b477
commit 475d829733

View File

@ -449,7 +449,7 @@ void queues_update(struct dunst_status status)
/* If displayed is actually full, let the more important notifications /* If displayed is actually full, let the more important notifications
* from waiting seep into displayed. * from waiting seep into displayed.
*/ */
if (settings.sort) { if (settings.sort && displayed->length == cur_displayed_limit) {
GList *i_waiting, *i_displayed; GList *i_waiting, *i_displayed;
while ( (i_waiting = g_queue_peek_head_link(waiting)) while ( (i_waiting = g_queue_peek_head_link(waiting))