diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-05-27 15:02:28 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-05-27 15:02:28 +0100 |
commit | d4bf4bd7c7702433f713fd31a1f84cb9b189f514 (patch) | |
tree | 0666b46613506e471919a021e810f8048c716114 /spawn.c | |
parent | 522d1bd3091aeb3094554ebd6ee28be124fc5393 (diff) | |
parent | ae3eba6e08a8ff36a63b328880d4a97f21e1108b (diff) | |
download | rtmux-d4bf4bd7c7702433f713fd31a1f84cb9b189f514.tar.gz rtmux-d4bf4bd7c7702433f713fd31a1f84cb9b189f514.tar.bz2 rtmux-d4bf4bd7c7702433f713fd31a1f84cb9b189f514.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'spawn.c')
-rw-r--r-- | spawn.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |