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.
This commit is contained in:
parent
896c008def
commit
faec6bdbca
@ -410,7 +410,7 @@ gint64 queues_get_next_datachange(gint64 time)
|
|||||||
if (age > settings.show_age_threshold)
|
if (age > settings.show_age_threshold)
|
||||||
// sleep exactly until the next shift of the second happens
|
// sleep exactly until the next shift of the second happens
|
||||||
sleep = MIN(sleep, ((G_USEC_PER_SEC) - (age % (G_USEC_PER_SEC))));
|
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);
|
sleep = MIN(sleep, settings.show_age_threshold);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user