summaryrefslogtreecommitdiffstats
path: root/cmd-respawn-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-24 19:35:33 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-24 19:35:33 +0000
commit2bb89bc5bce2f5ab59c4bec760f1151c4fb8b0a3 (patch)
treec7bbfc381f94b6b51c8e16b6c9f495d6dfa6e704 /cmd-respawn-window.c
parent133173850c4e9986e27d5d1733b4771e209d0015 (diff)
Set the active pane when respawning a window - fixes problems when respawning a
window with multiple panes.
Diffstat (limited to 'cmd-respawn-window.c')
-rw-r--r--cmd-respawn-window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c
index 3a795461..6faf11d9 100644
--- a/cmd-respawn-window.c
+++ b/cmd-respawn-window.c
@@ -81,6 +81,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
}
layout_init(w);
screen_reinit(&wp->base);
+ window_set_active_pane(w, wp);
recalculate_sizes();
server_redraw_window(w);