[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.261 and 1.262

version 1.261, 2020/05/16 16:35:13 version 1.262, 2020/05/16 16:50:55
Line 440 
Line 440 
 {  {
         struct window   *w = wp->window;          struct window   *w = wp->window;
         struct winsize   ws;          struct winsize   ws;
           u_int            sy = wp->sy + yadjust;
   
         if (wp->fd == -1)          if (wp->fd == -1)
                 return;                  return;
           log_debug("%s: %%%u resize to %u,%u", __func__, wp->id, wp->sx, sy);
   
         memset(&ws, 0, sizeof ws);          memset(&ws, 0, sizeof ws);
         ws.ws_col = wp->sx;          ws.ws_col = wp->sx;
         ws.ws_row = wp->sy + yadjust;          ws.ws_row = sy;
         ws.ws_xpixel = w->xpixel * ws.ws_col;          ws.ws_xpixel = w->xpixel * ws.ws_col;
         ws.ws_ypixel = w->ypixel * ws.ws_row;          ws.ws_ypixel = w->ypixel * ws.ws_row;
         if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)          if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
Line 991 
Line 993 
         wme = TAILQ_FIRST(&wp->modes);          wme = TAILQ_FIRST(&wp->modes);
         if (wme != NULL && wme->mode->resize != NULL)          if (wme != NULL && wme->mode->resize != NULL)
                 wme->mode->resize(wme, sx, sy);                  wme->mode->resize(wme, sx, sy);
   
         wp->flags |= (PANE_RESIZE|PANE_RESIZED);          wp->flags |= (PANE_RESIZE|PANE_RESIZED);
 }  }
   

Legend:
Removed from v.1.261  
changed lines
  Added in v.1.262