diff options
author | nicm <nicm> | 2014-04-02 17:14:24 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-04-02 17:14:24 +0000 |
commit | 82f3e0e9e68d4078555cd6270473c45a3e60273b (patch) | |
tree | 3ebb9353d575c23334c27fef2a492a7214c3e5d5 | |
parent | 8880bdb67c9d939ec53506d05f5ce1d75be10c97 (diff) |
Use the same logic for bell with and without visual-bell, from Filip
Moc.
-rw-r--r-- | server-window.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) |