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

Diff for /src/usr.bin/tmux/control-notify.c between version 1.7 and 1.8

version 1.7, 2013/03/25 11:40:54 version 1.8, 2013/03/26 10:54:48
Line 99 
Line 99 
 control_notify_window_unlinked(unused struct session *s, struct window *w)  control_notify_window_unlinked(unused struct session *s, struct window *w)
 {  {
         struct client   *c;          struct client   *c;
         struct session  *cs;  
         u_int            i;          u_int            i;
   
         for (i = 0; i < ARRAY_LENGTH(&clients); i++) {          for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
                 c = ARRAY_ITEM(&clients, i);                  c = ARRAY_ITEM(&clients, i);
                 if (!CONTROL_SHOULD_NOTIFY_CLIENT(c) || c->session == NULL)                  if (!CONTROL_SHOULD_NOTIFY_CLIENT(c) || c->session == NULL)
                         continue;                          continue;
                 cs = c->session;  
   
                 control_write(c, "%%window-close @%u", w->id);                  control_write(c, "%%window-close @%u", w->id);
         }          }
Line 136 
Line 134 
 control_notify_window_renamed(struct window *w)  control_notify_window_renamed(struct window *w)
 {  {
         struct client   *c;          struct client   *c;
         struct session  *s;  
         u_int            i;          u_int            i;
   
         for (i = 0; i < ARRAY_LENGTH(&clients); i++) {          for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
                 c = ARRAY_ITEM(&clients, i);                  c = ARRAY_ITEM(&clients, i);
                 if (!CONTROL_SHOULD_NOTIFY_CLIENT(c) || c->session == NULL)                  if (!CONTROL_SHOULD_NOTIFY_CLIENT(c) || c->session == NULL)
                         continue;                          continue;
                 s = c->session;  
   
                 control_write(c, "%%window-renamed @%u %s", w->id, w->name);                  control_write(c, "%%window-renamed @%u %s", w->id, w->name);
         }          }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8