From faec6bdbcabbe2a234d809b17d0ae33a79494ea1 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Thu, 6 Sep 2018 11:13:46 +0200 Subject: [PATCH] Wakeup also for infinite notifs when set show_age_threshold For notifications without any timeout, ttl can't be positive. So when, show_age_threshold is active, dunst won't wake up, if there are only notifications displayed without any timeout. --- src/queues.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queues.c b/src/queues.c index 2aa5f6f..b737eb7 100644 --- a/src/queues.c +++ b/src/queues.c @@ -410,7 +410,7 @@ gint64 queues_get_next_datachange(gint64 time) if (age > settings.show_age_threshold) // sleep exactly until the next shift of the second happens sleep = MIN(sleep, ((G_USEC_PER_SEC) - (age % (G_USEC_PER_SEC)))); - else if (ttl > settings.show_age_threshold) + else if (n->timeout == 0 || ttl > settings.show_age_threshold) sleep = MIN(sleep, settings.show_age_threshold); } }