summaryrefslogtreecommitdiffstats
path: root/spawn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-14 11:18:19 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-14 11:18:19 +0100
commit0bdbf47ef946b3535cc32b45ea8d971de5baddb5 (patch)
treea44b650fc7eb232083f25e070f243899ed9cbedc /spawn.c
parent12eceaf2b3ef2b028a55d8ad11951be700be0446 (diff)
Add a client flag 'active-pane' which stores the active pane in the client and
allows it to be changed independently from the real active pane stored in the window. This is can be used with session groups which allow an independent current window (although it would be nice to have a flag for this too and remove session groups). The client active pane is only really useful interactively, many things (hooks, window-style, zooming) still use the window active pane.
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spawn.c b/spawn.c
index f1ea87d2..5865a881 100644
--- a/spawn.c
+++ b/spawn.c
@@ -360,6 +360,7 @@ spawn_pane(struct spawn_context *sc, char **cause)
xasprintf(cause, "fork failed: %s", strerror(errno));
new_wp->fd = -1;
if (~sc->flags & SPAWN_RESPAWN) {
+ server_client_remove_pane(new_wp);
layout_close_pane(new_wp);
window_remove_pane(w, new_wp);
}