diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-01 09:07:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-11-01 09:07:19 +0000 |
commit | 43427bf37c414b04f730936dcaa990ae1c8d4a58 (patch) | |
tree | d2c462c7e9a80fa816c537b033b117a5777cd0cc /usr.bin/tmux/alerts.c | |
parent | cb635aa3a630bcdf775491d36cb29de56529bf3e (diff) |
Clear window alert flags after setting winlink alert flags, fixes problem
reported by Tommy Allen.
Diffstat (limited to 'usr.bin/tmux/alerts.c')
-rw-r--r-- | usr.bin/tmux/alerts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/alerts.c b/usr.bin/tmux/alerts.c index 41da0879fda..25f631a74e3 100644 --- a/usr.bin/tmux/alerts.c +++ b/usr.bin/tmux/alerts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alerts.c,v 1.15 2016/10/25 07:24:10 nicm Exp $ */ +/* $OpenBSD: alerts.c,v 1.16 2016/11/01 09:07:18 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -62,6 +62,8 @@ alerts_callback(__unused int fd, __unused short events, __unused void *arg) w->alerts_queued = 0; TAILQ_REMOVE(&alerts_list, w, alerts_entry); + + w->flags &= ~WINDOW_ALERTFLAGS; window_remove_ref(w); } alerts_fired = 0; |