diff options
author | nicm <nicm> | 2019-04-17 14:43:49 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-04-17 14:43:49 +0000 |
commit | c660e46149d606bd5e52941081cbe155e493768b (patch) | |
tree | b10d9763f0bef0318205d876358633dbb28ec3cf /layout.c | |
parent | e3b1358bbc616c1ba95414d6102c23bfcaa37687 (diff) | |
download | rtmux-c660e46149d606bd5e52941081cbe155e493768b.tar.gz rtmux-c660e46149d606bd5e52941081cbe155e493768b.tar.bz2 rtmux-c660e46149d606bd5e52941081cbe155e493768b.zip |
Set the window size as well as the layout size when using the preset
layouts.
Diffstat (limited to 'layout.c')
-rw-r--r-- | layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -479,7 +479,7 @@ layout_resize(struct window *w, u_int sx, u_int sy) * out proportionately - this should leave the layout fitting the new * window size. */ - xchange = sx - w->sx; + xchange = sx - lc->sx; xlimit = layout_resize_check(w, lc, LAYOUT_LEFTRIGHT); if (xchange < 0 && xchange < -xlimit) xchange = -xlimit; @@ -493,7 +493,7 @@ layout_resize(struct window *w, u_int sx, u_int sy) layout_resize_adjust(w, lc, LAYOUT_LEFTRIGHT, xchange); /* Adjust vertically in a similar fashion. */ - ychange = sy - w->sy; + ychange = sy - lc->sy; ylimit = layout_resize_check(w, lc, LAYOUT_TOPBOTTOM); if (ychange < 0 && ychange < -ylimit) ychange = -ylimit; |