From 475d829733146a6fd1ea90fe093a964ecd1d52e8 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Sun, 18 Nov 2018 03:12:53 +0100 Subject: [PATCH] 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. --- src/queues.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queues.c b/src/queues.c index d852da2..75e38aa 100644 --- a/src/queues.c +++ b/src/queues.c @@ -449,7 +449,7 @@ void queues_update(struct dunst_status status) /* If displayed is actually full, let the more important notifications * from waiting seep into displayed. */ - if (settings.sort) { + if (settings.sort && displayed->length == cur_displayed_limit) { GList *i_waiting, *i_displayed; while ( (i_waiting = g_queue_peek_head_link(waiting))