summaryrefslogtreecommitdiffstats
path: root/alerts.c
diff options
context:
space:
mode:
authornicm <nicm>2017-08-23 09:16:39 +0000
committernicm <nicm>2017-08-23 09:16:39 +0000
commitf0ce29c341a176654596dec4c9d20d8d9611d0b9 (patch)
tree6619fcc41527338005f27788d78389f7dc333d92 /alerts.c
parente1b3dc89d2f44ae6243be3222ed62daf78e63062 (diff)
Allow multiple bells even if there is an existing bell (but not activity
or silence), from Brad Town.
Diffstat (limited to 'alerts.c')
-rw-r--r--alerts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/alerts.c b/alerts.c
index 091c953d..32469c63 100644
--- a/alerts.c
+++ b/alerts.c
@@ -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;