summaryrefslogtreecommitdiffstats
path: root/alerts.c
diff options
context:
space:
mode:
authornicm <nicm>2017-07-26 16:16:25 +0000
committernicm <nicm>2017-07-26 16:16:25 +0000
commitb1bd0c7fc16e896e7432beb56075d501f90ed6b8 (patch)
tree39cb384333647ebfe8cc83e8d28610368bfc76c5 /alerts.c
parent76887b1d27386b5418f953064d7e47389a6831be (diff)
Always reset the alerts timer so it works even if activity and silence
are enabled on the same window.
Diffstat (limited to 'alerts.c')
-rw-r--r--alerts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/alerts.c b/alerts.c
index afeafb44..790ce38e 100644
--- a/alerts.c
+++ b/alerts.c
@@ -45,7 +45,6 @@ alerts_timer(__unused int fd, __unused short events, void *arg)
struct window *w = arg;
log_debug("@%u alerts timer expired", w->id);
- alerts_reset(w);
alerts_queue(w, WINDOW_SILENCE);
}
@@ -132,8 +131,7 @@ alerts_reset(struct window *w)
void
alerts_queue(struct window *w, int flags)
{
- if (w->flags & WINDOW_ACTIVITY)
- alerts_reset(w);
+ alerts_reset(w);
if (!event_initialized(&w->alerts_timer))
evtimer_set(&w->alerts_timer, alerts_timer, w);