(if bell-action any/current), just clear the flag so the status line
doesn't show the bell.
-/* $OpenBSD: server-window.c,v 1.15 2010/06/21 01:27:46 nicm Exp $ */
+/* $OpenBSD: server-window.c,v 1.16 2010/07/19 21:13:03 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
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) {