aboutsummaryrefslogtreecommitdiff
path: root/spawn.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-05-27 15:02:28 +0100
committerThomas Adam <thomas@xteddy.org>2019-05-27 15:02:28 +0100
commitd4bf4bd7c7702433f713fd31a1f84cb9b189f514 (patch)
tree0666b46613506e471919a021e810f8048c716114 /spawn.c
parent522d1bd3091aeb3094554ebd6ee28be124fc5393 (diff)
parentae3eba6e08a8ff36a63b328880d4a97f21e1108b (diff)
downloadrtmux-d4bf4bd7c7702433f713fd31a1f84cb9b189f514.tar.gz
rtmux-d4bf4bd7c7702433f713fd31a1f84cb9b189f514.tar.bz2
rtmux-d4bf4bd7c7702433f713fd31a1f84cb9b189f514.zip
Merge branch 'obsd-master'
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/spawn.c b/spawn.c
index 12409975..8be26fa3 100644
--- a/spawn.c
+++ b/spawn.c
@@ -159,6 +159,8 @@ spawn_window(struct spawn_context *sc, char **cause)
xasprintf(cause, "couldn't create window %d", idx);
return (NULL);
}
+ if (s->curw == NULL)
+ s->curw = sc->wl;
sc->wl->session = s;
winlink_set_window(sc->wl, w);
} else