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

Diff for /src/usr.bin/tmux/server.c between version 1.51 and 1.52

version 1.51, 2009/10/11 00:53:14 version 1.52, 2009/10/11 07:01:10
Line 880 
Line 880 
         struct timeval           tv;          struct timeval           tv;
         struct key_binding      *bd;          struct key_binding      *bd;
         struct keylist          *keylist;          struct keylist          *keylist;
           struct mouse_event       mouse;
         int                      key, status, xtimeout, mode, isprefix;          int                      key, status, xtimeout, mode, isprefix;
         u_int                    i;          u_int                    i;
         u_char                   mouse[3];  
   
         xtimeout = options_get_number(&c->session->options, "repeat-time");          xtimeout = options_get_number(&c->session->options, "repeat-time");
         if (xtimeout != 0 && c->flags & CLIENT_REPEAT) {          if (xtimeout != 0 && c->flags & CLIENT_REPEAT) {
Line 894 
Line 894 
   
         /* Process keys. */          /* Process keys. */
         keylist = options_get_data(&c->session->options, "prefix");          keylist = options_get_data(&c->session->options, "prefix");
         while (tty_keys_next(&c->tty, &key, mouse) == 0) {          while (tty_keys_next(&c->tty, &key, &mouse) == 0) {
                 if (c->session == NULL)                  if (c->session == NULL)
                         return;                          return;
   
Line 922 
Line 922 
                 /* Check for mouse keys. */                  /* Check for mouse keys. */
                 if (key == KEYC_MOUSE) {                  if (key == KEYC_MOUSE) {
                         if (options_get_number(oo, "mouse-select-pane")) {                          if (options_get_number(oo, "mouse-select-pane")) {
                                 window_set_active_at(w, mouse[1], mouse[2]);                                  window_set_active_at(w, mouse.x, mouse.y);
                                 wp = w->active;                                  wp = w->active;
                         }                          }
                         window_pane_mouse(wp, c, mouse[0], mouse[1], mouse[2]);                          window_pane_mouse(wp, c, &mouse);
                         continue;                          continue;
                 }                  }
   

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52