diff options
author | nicm <nicm> | 2015-09-21 09:34:52 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-09-21 09:34:52 +0000 |
commit | d5f223a3fec0b0ccf69f17e3515a20c79ec28e6e (patch) | |
tree | e890534ea05739fc7a2acd9d3a2d87ff20ab275d | |
parent | 6b709e655e52a302f537d6995affdbaf4e8ef0f1 (diff) | |
download | rtmux-d5f223a3fec0b0ccf69f17e3515a20c79ec28e6e.tar.gz rtmux-d5f223a3fec0b0ccf69f17e3515a20c79ec28e6e.tar.bz2 rtmux-d5f223a3fec0b0ccf69f17e3515a20c79ec28e6e.zip |
Reset the alerts timer always on activity, from Thomas Adam.
-rw-r--r-- | alerts.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |