aboutsummaryrefslogtreecommitdiff
path: root/resize.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2019-04-09 20:38:43 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-04-09 20:38:43 +0100
commit0cbccc90ab323158aecb961b93954878693c1c90 (patch)
treef03387ecec5e84fcfe222595c0dafb0a7243b472 /resize.c
parent71d90c11dd0a90a4defd3d56843dfcb1170310f5 (diff)
downloadrtmux-0cbccc90ab323158aecb961b93954878693c1c90.tar.gz
rtmux-0cbccc90ab323158aecb961b93954878693c1c90.tar.bz2
rtmux-0cbccc90ab323158aecb961b93954878693c1c90.zip
Set the window size as well as the layout size when using the preset layouts
and calculate the sizes correctly.
Diffstat (limited to 'resize.c')
-rw-r--r--resize.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/resize.c b/resize.c
index 868ddac8..caac74ba 100644
--- a/resize.c
+++ b/resize.c
@@ -51,6 +51,8 @@ resize_window(struct window *w, u_int sx, u_int sy)
if (sy < w->layout_root->sy)
sy = w->layout_root->sy;
window_resize(w, sx, sy);
+ log_debug("%s: @%u resized to %u,%u; layout %u,%u", __func__, w->id,
+ sx, sy, w->layout_root->sx, w->layout_root->sy);
/* Restore the window zoom state. */
if (zoomed)