[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.259 and 1.260

version 1.259, 2018/08/29 09:50:32 version 1.260, 2018/09/11 06:37:54
Line 523 
Line 523 
                 else if (m->statusat > 0 && y >= (u_int)m->statusat)                  else if (m->statusat > 0 && y >= (u_int)m->statusat)
                         y = m->statusat - 1;                          y = m->statusat - 1;
   
                 TAILQ_FOREACH(wp, &s->curw->window->panes, entry) {                  /* Try the pane borders if not zoomed. */
                         if ((wp->xoff + wp->sx == x &&                  if (~s->curw->window->flags & WINDOW_ZOOMED) {
                             wp->yoff <= 1 + y &&                          TAILQ_FOREACH(wp, &s->curw->window->panes, entry) {
                             wp->yoff + wp->sy >= y) ||                                  if ((wp->xoff + wp->sx == x &&
                             (wp->yoff + wp->sy == y &&                                      wp->yoff <= 1 + y &&
                             wp->xoff <= 1 + x &&                                      wp->yoff + wp->sy >= y) ||
                             wp->xoff + wp->sx >= x))                                      (wp->yoff + wp->sy == y &&
                                 break;                                      wp->xoff <= 1 + x &&
                                       wp->xoff + wp->sx >= x))
                                           break;
                           }
                           if (wp != NULL)
                                   where = BORDER;
                 }                  }
                 if (wp != NULL)  
                         where = BORDER;                  /* Otherwise try inside the pane. */
                 else {                  if (where == NOWHERE) {
                         wp = window_get_active_at(s->curw->window, x, y);                          wp = window_get_active_at(s->curw->window, x, y);
                         if (wp != NULL) {                          if (wp != NULL)
                                 where = PANE;                                  where = PANE;
                                 log_debug("mouse at %u,%u is on pane %%%u",  
                                     x, y, wp->id);  
                         }  
                 }                  }
   
                 if (where == NOWHERE)                  if (where == NOWHERE)
                         return (KEYC_UNKNOWN);                          return (KEYC_UNKNOWN);
                   if (where == PANE)
                           log_debug("mouse %u,%u on pane %%%u", x, y, wp->id);
                   else if (where == BORDER)
                           log_debug("mouse on pane %%%u border", wp->id);
                 m->wp = wp->id;                  m->wp = wp->id;
                 m->w = wp->window->id;                  m->w = wp->window->id;
         } else          } else

Legend:
Removed from v.1.259  
changed lines
  Added in v.1.260