diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2017-10-10 15:51:23 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2018-02-25 21:53:24 -0600 |
commit | dbe8676d7d69651132bde2b6d9ec3787cbbc552a (patch) | |
tree | 06b6397a18b266085f5b89677521dd441c860b4f /x.c | |
parent | a8314643b1aeaa2187dad71dc5748aaac1760c1b (diff) | |
download | st-dbe8676d7d69651132bde2b6d9ec3787cbbc552a.tar.gz st-dbe8676d7d69651132bde2b6d9ec3787cbbc552a.tar.bz2 |
Pass new dimensions into ttyresize
This removes another reference to TermWindow from st.c.
Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -192,7 +192,7 @@ zoomabs(const Arg *arg) xunloadfonts(); xloadfonts(usedfont, arg->f); cresize(0, 0); - ttyresize(); + ttyresize(win.tw, win.th); redraw(); xhints(); } @@ -1679,7 +1679,7 @@ resize(XEvent *e) return; cresize(e->xconfigure.width, e->xconfigure.height); - ttyresize(); + ttyresize(win.tw, win.th); } void @@ -1710,7 +1710,7 @@ run(void) cresize(w, h); ttynew(); - ttyresize(); + ttyresize(win.tw, win.th); clock_gettime(CLOCK_MONOTONIC, &last); lastblink = last; |