aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server-window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/server-window.c b/server-window.c
index 42a4a699..f8bf27d8 100644
--- a/server-window.c
+++ b/server-window.c
@@ -109,10 +109,8 @@ server_window_check_bell(struct session *s, struct winlink *wl)
if (!(w->flags & WINDOW_BELL) || wl->flags & WINLINK_BELL)
return (0);
- if (s->curw == wl)
- return (0);
-
- wl->flags |= WINLINK_BELL;
+ if (s->curw != wl)
+ wl->flags |= WINLINK_BELL;
action = options_get_number(&s->options, "bell-action");
switch (action) {