From 77deef733bfc547325d7c6db3e0274b1c52281b9 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 23 Sep 2019 15:41:11 +0000 Subject: Use the correct size for new windows when window-size is latest, reported by Vamsi Krishna Avula in GitHub issue 1917. --- spawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spawn.c') diff --git a/spawn.c b/spawn.c index 1917955e..71361c9f 100644 --- a/spawn.c +++ b/spawn.c @@ -155,7 +155,7 @@ spawn_window(struct spawn_context *sc, char **cause) xasprintf(cause, "couldn't add window %d", idx); return (NULL); } - default_window_size(s, NULL, &sx, &sy, -1); + default_window_size(sc->c, s, NULL, &sx, &sy, -1); if ((w = window_create(sx, sy)) == NULL) { winlink_remove(&s->windows, sc->wl); xasprintf(cause, "couldn't create window %d", idx); -- cgit