From 82f3e0e9e68d4078555cd6270473c45a3e60273b Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 2 Apr 2014 17:14:24 +0000 Subject: Use the same logic for bell with and without visual-bell, from Filip Moc. --- server-window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server-window.c') diff --git a/server-window.c b/server-window.c index 39699c37..86beeef4 100644 --- a/server-window.c +++ b/server-window.c @@ -85,10 +85,11 @@ server_window_check_bell(struct session *s, struct winlink *wl) return (0); for (i = 0; i < ARRAY_LENGTH(&clients); i++) { c = ARRAY_ITEM(&clients, i); - if (c == NULL || c->session != s || (c->flags & CLIENT_CONTROL)) + if (c == NULL || c->session != s || c->flags & CLIENT_CONTROL) continue; if (!visual) { - tty_bell(&c->tty); + if (c->session->curw->window == w || action == BELL_ANY) + tty_bell(&c->tty); continue; } if (c->session->curw->window == w) -- cgit