Hi,

On Sun, Jun 17, 2012 at 07:20:08PM +0100, Thomas Adam wrote:
> +/* Clear alert flags for a winlink */
> +void
> +winlink_clear_flags(struct winlink *wl)
> +{
> +     struct winlink  *wm;
> +     struct session  *s;
> +     struct window   *w;
> +     u_int            i;
> +
> +     for (i = 0; i < ARRAY_LENGTH(&windows); i++)
> +     {
> +             if ((w = ARRAY_ITEM(&windows, i)) == NULL)
> +                     continue;
> +
> +             RB_FOREACH(s, sessions, &sessions)
> +             {
> +                     if ((wm = session_has(s, w)) == NULL)
> +                             continue;
> +
> +                     if (wm->flags & WINLINK_ALERTFLAGS &&
> +                             wm->window == wl->window)
> +                     {
> +                             wm->flags &= ~WINLINK_ALERTFLAGS;

> +                             w->flags &= ~(WINDOW_BELL|WINDOW_ACTIVITY);

This line should be removed, now that the responsibility of clearing
window-specific flags has moved to each of the server_status_*() functions. 

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to