Clear window->flags when clearing winlinks

When clearing WINLINK_ALERTFLAGS for all sessions, we must also, for
that window, clear the window->flags as well, otherwise sessions may
well still see flags for winlinks long since cleared.

This therefore introduces WINDOW_ALERTFLAGS to help with this.
This commit is contained in:
nicm 2013-10-10 11:59:23 +00:00
parent e6af0ad23e
commit 90ae7682ed

View File

@ -1242,6 +1242,7 @@ winlink_clear_flags(struct winlink *wl)
continue; continue;
wm->flags &= ~WINLINK_ALERTFLAGS; wm->flags &= ~WINLINK_ALERTFLAGS;
wm->window->flags &= ~WINDOW_ALERTFLAGS;
server_status_session(s); server_status_session(s);
} }
} }