diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-08-23 09:16:40 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-08-23 09:16:40 +0000 |
commit | 6301f33ddf76306336174c9873ad80a641cf9494 (patch) | |
tree | 01ac0da7d16ae004108d9d89b2a38b206317c391 /usr.bin/tmux/alerts.c | |
parent | d0978c28676437bf87fd5757ca436d30eeb8c3ff (diff) |
Allow multiple bells even if there is an existing bell (but not activity
or silence), from Brad Town.
Diffstat (limited to 'usr.bin/tmux/alerts.c')
-rw-r--r-- | usr.bin/tmux/alerts.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tmux/alerts.c b/usr.bin/tmux/alerts.c index 60a6635eff5..3cf4328a535 100644 --- a/usr.bin/tmux/alerts.c +++ b/usr.bin/tmux/alerts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alerts.c,v 1.25 2017/08/23 09:14:21 nicm Exp $ */ +/* $OpenBSD: alerts.c,v 1.26 2017/08/23 09:16:39 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -195,8 +195,10 @@ alerts_check_bell(struct window *w) wl->session->flags &= ~SESSION_ALERTED; TAILQ_FOREACH(wl, &w->winlinks, wentry) { - if (wl->flags & WINLINK_BELL) - continue; + /* + * Bells are allowed even if there is an existing bell (so do + * not check WINLINK_BELL). + */ s = wl->session; if (s->curw != wl) wl->flags |= WINLINK_BELL; |