mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Make client -c and -t handling common in cmd-queue.c and try to be
clearer about whether the client is the target client (must have a session) or not.
This commit is contained in:
4
spawn.c
4
spawn.c
@ -153,7 +153,7 @@ spawn_window(struct spawn_context *sc, char **cause)
|
||||
xasprintf(cause, "couldn't add window %d", idx);
|
||||
return (NULL);
|
||||
}
|
||||
default_window_size(sc->c, s, NULL, &sx, &sy, &xpixel, &ypixel,
|
||||
default_window_size(sc->tc, s, NULL, &sx, &sy, &xpixel, &ypixel,
|
||||
-1);
|
||||
if ((w = window_create(sx, sy, xpixel, ypixel)) == NULL) {
|
||||
winlink_remove(&s->windows, sc->wl);
|
||||
@ -163,7 +163,7 @@ spawn_window(struct spawn_context *sc, char **cause)
|
||||
if (s->curw == NULL)
|
||||
s->curw = sc->wl;
|
||||
sc->wl->session = s;
|
||||
w->latest = sc->c;
|
||||
w->latest = sc->tc;
|
||||
winlink_set_window(sc->wl, w);
|
||||
} else
|
||||
w = NULL;
|
||||
|
Reference in New Issue
Block a user