diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-07-19 21:13:03 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-07-19 21:13:03 +0000 |
commit | 2b80ede9631b8236aa213c730cd6d91805e761f9 (patch) | |
tree | 5e27fee5c4d32723bf95731a43b0d93c26d41ab1 /server-window.c | |
parent | 2a0f3f0d7981fc4fe4739f22f699a5a59a0b2bf8 (diff) | |
download | rtmux-2b80ede9631b8236aa213c730cd6d91805e761f9.tar.gz rtmux-2b80ede9631b8236aa213c730cd6d91805e761f9.tar.bz2 rtmux-2b80ede9631b8236aa213c730cd6d91805e761f9.zip |
Don't return if in the current window since we may want to report a bell
(if bell-action any/current), just clear the flag so the status line
doesn't show the bell.
Diffstat (limited to 'server-window.c')
-rw-r--r-- | server-window.c | 6 |
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) { |