summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2013-10-10 11:59:23 +0000
committernicm <nicm>2013-10-10 11:59:23 +0000
commit90ae7682ed06557bd4d8deac9d9e48ecc7b38a07 (patch)
treebd7ee4ecc69a1f3fdc1f8751eab9971f75058e48
parente6af0ad23e1a43add71dd09a03c05057aab26748 (diff)
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.
-rw-r--r--window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/window.c b/window.c
index 3b6b74bd..0ea70688 100644
--- a/window.c
+++ b/window.c
@@ -1242,6 +1242,7 @@ winlink_clear_flags(struct winlink *wl)
continue;
wm->flags &= ~WINLINK_ALERTFLAGS;
+ wm->window->flags &= ~WINDOW_ALERTFLAGS;
server_status_session(s);
}
}