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.zip |
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) | |||
192 | xunloadfonts(); | 192 | xunloadfonts(); |
193 | xloadfonts(usedfont, arg->f); | 193 | xloadfonts(usedfont, arg->f); |
194 | cresize(0, 0); | 194 | cresize(0, 0); |
195 | ttyresize(); | 195 | ttyresize(win.tw, win.th); |
196 | redraw(); | 196 | redraw(); |
197 | xhints(); | 197 | xhints(); |
198 | } | 198 | } |
@@ -1679,7 +1679,7 @@ resize(XEvent *e) | |||
1679 | return; | 1679 | return; |
1680 | 1680 | ||
1681 | cresize(e->xconfigure.width, e->xconfigure.height); | 1681 | cresize(e->xconfigure.width, e->xconfigure.height); |
1682 | ttyresize(); | 1682 | ttyresize(win.tw, win.th); |
1683 | } | 1683 | } |
1684 | 1684 | ||
1685 | void | 1685 | void |
@@ -1710,7 +1710,7 @@ run(void) | |||
1710 | 1710 | ||
1711 | cresize(w, h); | 1711 | cresize(w, h); |
1712 | ttynew(); | 1712 | ttynew(); |
1713 | ttyresize(); | 1713 | ttyresize(win.tw, win.th); |
1714 | 1714 | ||
1715 | clock_gettime(CLOCK_MONOTONIC, &last); | 1715 | clock_gettime(CLOCK_MONOTONIC, &last); |
1716 | lastblink = last; | 1716 | lastblink = last; |