X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=839dc94db7621e4bbc9d29b2792ebfb0515a625f;hb=dbe8676d7d69651132bde2b6d9ec3787cbbc552a;hp=75c191de8c5dffc99acc99394a3e38400323c15b;hpb=a8314643b1aeaa2187dad71dc5748aaac1760c1b;p=st.git diff --git a/st.c b/st.c index 75c191d..839dc94 100644 --- a/st.c +++ b/st.c @@ -905,14 +905,14 @@ ttysend(char *s, size_t n) } void -ttyresize(void) +ttyresize(int tw, int th) { struct winsize w; w.ws_row = term.row; w.ws_col = term.col; - w.ws_xpixel = win.tw; - w.ws_ypixel = win.th; + w.ws_xpixel = tw; + w.ws_ypixel = th; if (ioctl(cmdfd, TIOCSWINSZ, &w) < 0) fprintf(stderr, "Couldn't set window size: %s\n", strerror(errno)); }