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

Diff for /src/usr.bin/tmux/alerts.c between version 1.23 and 1.24

version 1.23, 2017/08/16 11:46:08 version 1.24, 2017/08/17 08:37:38
Line 90 
Line 90 
 static int  static int
 alerts_enabled(struct window *w, int flags)  alerts_enabled(struct window *w, int flags)
 {  {
         if (flags & WINDOW_BELL)          if (flags & WINDOW_BELL) {
                 return (1);                  if (options_get_number(w->options, "monitor-bell"))
                           return (1);
           }
         if (flags & WINDOW_ACTIVITY) {          if (flags & WINDOW_ACTIVITY) {
                 if (options_get_number(w->options, "monitor-activity"))                  if (options_get_number(w->options, "monitor-activity"))
                         return (1);                          return (1);
Line 163 
Line 165 
         struct session  *s;          struct session  *s;
   
         if (~w->flags & WINDOW_BELL)          if (~w->flags & WINDOW_BELL)
                   return (0);
           if (!options_get_number(w->options, "monitor-bell"))
                 return (0);                  return (0);
   
         TAILQ_FOREACH(wl, &w->winlinks, wentry)          TAILQ_FOREACH(wl, &w->winlinks, wentry)

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24