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

Diff for /src/usr.bin/tmux/server-client.c between version 1.294 and 1.295

version 1.294, 2019/08/28 07:34:32 version 1.295, 2019/09/19 09:02:30
Line 996 
Line 996 
         return (0);          return (0);
 }  }
   
   /* Has the latest client changed? */
   static void
   server_client_update_latest(struct client *c)
   {
           struct window   *w;
   
           if (c->session == NULL)
                   return;
           w = c->session->curw->window;
   
           if (w->latest == c)
                   return;
           w->latest = c;
   
           if (options_get_number(w->options, "window-size") == WINDOW_SIZE_LATEST)
                   recalculate_size(w);
   }
   
 /*  /*
  * Handle data key input from client. This owns and can modify the key event it   * Handle data key input from client. This owns and can modify the key event it
  * is given and is responsible for freeing it.   * is given and is responsible for freeing it.
Line 1192 
Line 1210 
                 window_pane_key(wp, c, s, wl, key, m);                  window_pane_key(wp, c, s, wl, key, m);
   
 out:  out:
           if (s != NULL)
                   server_client_update_latest(c);
         free(event);          free(event);
         return (CMD_RETURN_NORMAL);          return (CMD_RETURN_NORMAL);
 }  }
Line 1737 
Line 1757 
   
                 if (c->flags & CLIENT_CONTROL)                  if (c->flags & CLIENT_CONTROL)
                         break;                          break;
                   server_client_update_latest(c);
                 server_client_clear_overlay(c);                  server_client_clear_overlay(c);
                 tty_resize(&c->tty);                  tty_resize(&c->tty);
                 recalculate_sizes();                  recalculate_sizes();

Legend:
Removed from v.1.294  
changed lines
  Added in v.1.295