diff options
author | Thomas <thomas@xteddy.org> | 2013-08-20 10:37:55 +0100 |
---|---|---|
committer | Thomas <thomas@xteddy.org> | 2013-08-20 13:03:53 +0100 |
commit | c103f2fbcbeb82019b694bed6869942bc1cbe966 (patch) | |
tree | dd862b67173024b72ad23a6c6df9577e1e8b2df0 | |
parent | aa4920fea3dcdcaa0dbe4d373160195b1a3ca892 (diff) | |
download | rtmux-c103f2fbcbeb82019b694bed6869942bc1cbe966.tar.gz rtmux-c103f2fbcbeb82019b694bed6869942bc1cbe966.tar.bz2 rtmux-c103f2fbcbeb82019b694bed6869942bc1cbe966.zip |
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 therfore introduces WINDOW_ALERTFLAGS to help with this.
-rw-r--r-- | tmux.h | 1 | ||||
-rw-r--r-- | window.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -1005,6 +1005,7 @@ struct window { #define WINDOW_REDRAW 0x4 #define WINDOW_SILENCE 0x8 #define WINDOW_ZOOMED 0x10 +#define WINDOW_ALERTFLAGS (WINDOW_BELL|WINDOW_ACTIVITY|WINDOW_SILENCE) struct options options; @@ -1243,6 +1243,7 @@ winlink_clear_flags(struct winlink *wl) continue; wm->flags &= ~WINLINK_ALERTFLAGS; + wm->window->flags &= ~WINDOW_ALERTFLAGS; server_status_session(s); } } |