summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/alerts.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-11-01 09:07:19 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-11-01 09:07:19 +0000
commit43427bf37c414b04f730936dcaa990ae1c8d4a58 (patch)
treed2c462c7e9a80fa816c537b033b117a5777cd0cc /usr.bin/tmux/alerts.c
parentcb635aa3a630bcdf775491d36cb29de56529bf3e (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.c4
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;