render: resize: TIOCSWINSZ: don't include padding in ws_{x,y}pixel

This commit is contained in:
Daniel Eklöf 2020-01-12 14:42:49 +01:00
parent 1623fc0c0a
commit 727be358df
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1097,8 +1097,8 @@ render_resize(struct terminal *term, int width, int height)
&(struct winsize){
.ws_row = term->rows,
.ws_col = term->cols,
.ws_xpixel = term->width,
.ws_ypixel = term->height}) == -1)
.ws_xpixel = term->cols * term->cell_width,
.ws_ypixel = term->rows * term->cell_height}) == -1)
{
LOG_ERRNO("TIOCSWINSZ");
}