aboutsummaryrefslogtreecommitdiff
path: root/cmd-break-pane.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-break-pane.c')
-rw-r--r--cmd-break-pane.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-break-pane.c b/cmd-break-pane.c
index b4c5b7cd..6c638103 100644
--- a/cmd-break-pane.c
+++ b/cmd-break-pane.c
@@ -76,11 +76,12 @@ cmd_break_pane_exec(struct cmd *self, struct cmdq_item *item)
window_lost_pane(w, wp);
layout_close_pane(wp);
- w = wp->window = window_create(w->sx, w->sy);
+ w = wp->window = window_create(w->sx, w->sy, w->xpixel, w->ypixel);
options_set_parent(wp->options, w->options);
wp->flags |= PANE_STYLECHANGED;
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
w->active = wp;
+ w->latest = c;
if (!args_has(args, 'n')) {
name = default_window_name(w);