aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render.c b/render.c
index f1ba330d..70da55ef 100644
--- a/render.c
+++ b/render.c
@@ -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");
}