aboutsummaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2017-10-10 15:51:23 -0500
committerDevin J. Pohly <djpohly@gmail.com>2018-02-25 21:53:24 -0600
commitdbe8676d7d69651132bde2b6d9ec3787cbbc552a (patch)
tree06b6397a18b266085f5b89677521dd441c860b4f /x.c
parenta8314643b1aeaa2187dad71dc5748aaac1760c1b (diff)
downloadst-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/x.c b/x.c
index 01ef1b0..1b656ac 100644
--- a/x.c
+++ b/x.c
@@ -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
1685void 1685void
@@ -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;