From 6301f33ddf76306336174c9873ad80a641cf9494 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 23 Aug 2017 09:16:40 +0000 Subject: Allow multiple bells even if there is an existing bell (but not activity or silence), from Brad Town. --- usr.bin/tmux/alerts.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.bin/tmux/alerts.c') 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 @@ -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; -- cgit v1.2.3