TIOCSWINSZ: set ws_xpixel and ws_ypixel

This commit is contained in:
Daniel Eklöf 2019-06-16 16:47:09 +02:00
parent c5b60253a7
commit 733223dd0c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

7
main.c
View file

@ -214,8 +214,11 @@ resize(struct context *c, int width, int height)
/* SIignal TIOCSWINSZ */
if (ioctl(c->ptmx, TIOCSWINSZ,
&(struct winsize){.ws_row = c->term.grid.rows,
.ws_col = c->term.grid.cols}) == -1)
&(struct winsize){
.ws_row = c->term.grid.rows,
.ws_col = c->term.grid.cols,
.ws_xpixel = c->width,
.ws_ypixel = c->height}) == -1)
{
LOG_ERRNO("TIOCSWINSZ");
}