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

Diff for /src/usr.bin/tmux/window.c between version 1.30 and 1.31

version 1.30, 2009/10/10 15:29:34 version 1.31, 2009/10/11 07:01:10
Line 653 
Line 653 
   
 void  void
 window_pane_mouse(  window_pane_mouse(
     struct window_pane *wp, struct client *c, u_char b, u_char x, u_char y)      struct window_pane *wp, struct client *c, struct mouse_event *m)
 {  {
         if (!window_pane_visible(wp))          if (!window_pane_visible(wp))
                 return;                  return;
   
         /* XXX convert from 1-based? */          if (m->x < wp->xoff || m->x >= wp->xoff + wp->sx)
   
         if (x < wp->xoff || x >= wp->xoff + wp->sx)  
                 return;                  return;
         if (y < wp->yoff || y >= wp->yoff + wp->sy)          if (m->y < wp->yoff || m->y >= wp->yoff + wp->sy)
                 return;                  return;
         x -= wp->xoff;          m->x -= wp->xoff;
         y -= wp->yoff;          m->y -= wp->yoff;
   
         if (wp->mode != NULL) {          if (wp->mode != NULL) {
                 if (wp->mode->mouse != NULL)                  if (wp->mode->mouse != NULL)
                         wp->mode->mouse(wp, c, b, x, y);                          wp->mode->mouse(wp, c, m);
         } else if (wp->fd != -1)          } else if (wp->fd != -1)
                 input_mouse(wp, b, x, y);                  input_mouse(wp, m);
 }  }
   
 int  int

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31