[BACK]Return to window.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/window.c between version 1.80 and 1.81

version 1.80, 2012/05/28 08:55:43 version 1.81, 2012/07/08 07:27:32
Line 1164 
Line 1164 
         }          }
         return (NULL);          return (NULL);
 }  }
   
   /* 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->window != wl->window)
                                   continue;
                           if ((wm->flags & WINLINK_ALERTFLAGS) == 0)
                                   continue;
   
                           wm->flags &= ~WINLINK_ALERTFLAGS;
                           server_status_session(s);
                   }
           }
   }

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81