The branch, master has been updated
       via  c103f2fbcbeb82019b694bed6869942bc1cbe966 (commit)
      from  aa4920fea3dcdcaa0dbe4d373160195b1a3ca892 (commit)

- Log -----------------------------------------------------------------
commit c103f2fbcbeb82019b694bed6869942bc1cbe966
Author: Thomas <[email protected]>
Commit: Thomas <[email protected]>

    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.
---
 tmux.h   |    1 +
 window.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tmux.h b/tmux.h
index 6ab9861..0a17f72 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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;
 
diff --git a/window.c b/window.c
index 7678adc..7912bd3 100644
--- a/window.c
+++ b/window.c
@@ -1243,6 +1243,7 @@ winlink_clear_flags(struct winlink *wl)
                                continue;
 
                        wm->flags &= ~WINLINK_ALERTFLAGS;
+                       wm->window->flags &= ~WINDOW_ALERTFLAGS;
                        server_status_session(s);
                }
        }


-----------------------------------------------------------------------

Summary of changes:
 tmux.h   |    1 +
 window.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to