version 1.11, 2019/11/14 07:55:01 |
version 1.12, 2019/11/28 09:45:16 |
|
|
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); |
|
|
|
|
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); |
|
|
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); |