mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
Do not always resize the window back to its original size after applying
a layout, let the normal window resize process do it. This means windows are not resized at all if window-size is manual, and are not resized multiple times if later attached to a different size terminal.
This commit is contained in:
@ -168,10 +168,7 @@ layout_parse(struct window *w, const char *layout)
|
|||||||
/* Update pane offsets and sizes. */
|
/* Update pane offsets and sizes. */
|
||||||
layout_fix_offsets(lc);
|
layout_fix_offsets(lc);
|
||||||
layout_fix_panes(w);
|
layout_fix_panes(w);
|
||||||
|
recalculate_sizes();
|
||||||
/* Then resize the layout back to the original window size. */
|
|
||||||
layout_resize(w, sx, sy);
|
|
||||||
window_resize(w, sx, sy);
|
|
||||||
|
|
||||||
layout_print_cell(lc, __func__, 0);
|
layout_print_cell(lc, __func__, 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user