diff options
author | 2017-08-23 09:16:39 +0000 | |
---|---|---|
committer | 2017-08-23 09:16:39 +0000 | |
commit | ac0a37a16812b5dce587691b62ea929600469192 (patch) | |
tree | 305249c4b571b992e90d8d43d3133db72b047255 | |
parent | Switch from 4-clause to 2-clause BSD license. (diff) | |
download | wireguard-openbsd-ac0a37a16812b5dce587691b62ea929600469192.tar.xz wireguard-openbsd-ac0a37a16812b5dce587691b62ea929600469192.zip |
Allow multiple bells even if there is an existing bell (but not activity
or silence), from Brad Town.
-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; |