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:
parent
0b7a31b477
commit
475d829733
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user