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

Diff for /src/usr.bin/tmux/window-client.c between version 1.15 and 1.16

version 1.15, 2018/12/18 13:20:44 version 1.16, 2019/03/07 20:24:21
Line 25 
Line 25 
   
 #include "tmux.h"  #include "tmux.h"
   
 static struct screen    *window_client_init(struct window_pane *,  static struct screen    *window_client_init(struct window_mode_entry *,
                              struct cmd_find_state *, struct args *);                               struct cmd_find_state *, struct args *);
 static void              window_client_free(struct window_pane *);  static void              window_client_free(struct window_mode_entry *);
 static void              window_client_resize(struct window_pane *, u_int,  static void              window_client_resize(struct window_mode_entry *, u_int,
                              u_int);                               u_int);
 static void              window_client_key(struct window_pane *,  static void              window_client_key(struct window_mode_entry *,
                              struct client *, struct session *,                               struct client *, struct session *,
                              struct winlink *, key_code, struct mouse_event *);                               struct winlink *, key_code, struct mouse_event *);
   
Line 236 
Line 236 
 }  }
   
 static struct screen *  static struct screen *
 window_client_init(struct window_pane *wp, __unused struct cmd_find_state *fs,  window_client_init(struct window_mode_entry *wme,
     struct args *args)      __unused struct cmd_find_state *fs, struct args *args)
 {  {
           struct window_pane              *wp = wme->wp;
         struct window_client_modedata   *data;          struct window_client_modedata   *data;
         struct screen                   *s;          struct screen                   *s;
   
         wp->modedata = data = xcalloc(1, sizeof *data);          wme->data = data = xcalloc(1, sizeof *data);
   
         if (args == NULL || !args_has(args, 'F'))          if (args == NULL || !args_has(args, 'F'))
                 data->format = xstrdup(WINDOW_CLIENT_DEFAULT_FORMAT);                  data->format = xstrdup(WINDOW_CLIENT_DEFAULT_FORMAT);
Line 265 
Line 266 
 }  }
   
 static void  static void
 window_client_free(struct window_pane *wp)  window_client_free(struct window_mode_entry *wme)
 {  {
         struct window_client_modedata   *data = wp->modedata;          struct window_client_modedata   *data = wme->data;
         u_int                            i;          u_int                            i;
   
         if (data == NULL)          if (data == NULL)
Line 286 
Line 287 
 }  }
   
 static void  static void
 window_client_resize(struct window_pane *wp, u_int sx, u_int sy)  window_client_resize(struct window_mode_entry *wme, u_int sx, u_int sy)
 {  {
         struct window_client_modedata   *data = wp->modedata;          struct window_client_modedata   *data = wme->data;
   
         mode_tree_resize(data->data, sx, sy);          mode_tree_resize(data->data, sx, sy);
 }  }
Line 311 
Line 312 
 }  }
   
 static void  static void
 window_client_key(struct window_pane *wp, struct client *c,  window_client_key(struct window_mode_entry *wme, struct client *c,
     __unused struct session *s, __unused struct winlink *wl, key_code key,      __unused struct session *s, __unused struct winlink *wl, key_code key,
     struct mouse_event *m)      struct mouse_event *m)
 {  {
         struct window_client_modedata   *data = wp->modedata;          struct window_pane              *wp = wme->wp;
           struct window_client_modedata   *data = wme->data;
         struct mode_tree_data           *mtd = data->data;          struct mode_tree_data           *mtd = data->data;
         struct window_client_itemdata   *item;          struct window_client_itemdata   *item;
         int                              finished;          int                              finished;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16