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

Diff for /src/usr.bin/tmux/spawn.c between version 1.11 and 1.12

version 1.11, 2019/11/14 07:55:01 version 1.12, 2019/11/28 09:45:16
Line 85 
Line 85 
         struct window_pane      *wp;          struct window_pane      *wp;
         struct winlink          *wl;          struct winlink          *wl;
         int                      idx = sc->idx;          int                      idx = sc->idx;
         u_int                    sx, sy;          u_int                    sx, sy, xpixel, ypixel;
   
         spawn_log(__func__, sc);          spawn_log(__func__, sc);
   
Line 155 
Line 155 
                         xasprintf(cause, "couldn't add window %d", idx);                          xasprintf(cause, "couldn't add window %d", idx);
                         return (NULL);                          return (NULL);
                 }                  }
                 default_window_size(sc->c, s, NULL, &sx, &sy, -1);                  default_window_size(sc->c, s, NULL, &sx, &sy, &xpixel, &ypixel,
                 if ((w = window_create(sx, sy)) == NULL) {                      -1);
                   if ((w = window_create(sx, sy, xpixel, ypixel)) == NULL) {
                         winlink_remove(&s->windows, sc->wl);                          winlink_remove(&s->windows, sc->wl);
                         xasprintf(cause, "couldn't create window %d", idx);                          xasprintf(cause, "couldn't create window %d", idx);
                         return (NULL);                          return (NULL);
Line 338 
Line 339 
         memset(&ws, 0, sizeof ws);          memset(&ws, 0, sizeof ws);
         ws.ws_col = screen_size_x(&new_wp->base);          ws.ws_col = screen_size_x(&new_wp->base);
         ws.ws_row = screen_size_y(&new_wp->base);          ws.ws_row = screen_size_y(&new_wp->base);
           ws.ws_xpixel = w->xpixel * ws.ws_col;
           ws.ws_ypixel = w->ypixel * ws.ws_row;
   
         /* Block signals until fork has completed. */          /* Block signals until fork has completed. */
         sigfillset(&set);          sigfillset(&set);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12