summaryrefslogtreecommitdiffstats
path: root/alerts.c
diff options
context:
space:
mode:
Diffstat (limited to 'alerts.c')
-rw-r--r--alerts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/alerts.c b/alerts.c
index 5d52f7ad..806e565b 100644
--- a/alerts.c
+++ b/alerts.c
@@ -126,6 +126,9 @@ alerts_reset(struct window *w)
void
alerts_queue(struct window *w, int flags)
{
+ if (w->flags & WINDOW_ACTIVITY)
+ alerts_reset(w);
+
if (!event_initialized(&w->alerts_timer))
evtimer_set(&w->alerts_timer, alerts_timer, w);
@@ -139,9 +142,6 @@ alerts_queue(struct window *w, int flags)
event_once(-1, EV_TIMEOUT, alerts_callback, NULL, NULL);
alerts_fired = 1;
}
-
- if (flags & WINDOW_ACTIVITY)
- alerts_reset(w);
}
int