summaryrefslogtreecommitdiffstats
path: root/cmd-respawn-window.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-25 09:04:54 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-25 09:04:54 +0000
commita5ad186547afc844f79c2dc8f3adb1821890e5db (patch)
tree4788c397e1ea05a0c1d7e57937bf94241822c6d6 /cmd-respawn-window.c
parent5e7a48a865a686e0ee15d057bda11c1b748a97c9 (diff)
Sync OpenBSD patchset 180:
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c
index cdfb0656..74675c21 100644
--- a/cmd-respawn-window.c
+++ b/cmd-respawn-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-respawn-window.c,v 1.16 2009-07-20 15:42:05 tcunha Exp $ */
+/* $Id: cmd-respawn-window.c,v 1.17 2009-07-25 09:04:54 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);