From 727be358df89f2a8871d3f116e57acc9c0f2e6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 12 Jan 2020 14:42:49 +0100 Subject: [PATCH] render: resize: TIOCSWINSZ: don't include padding in ws_{x,y}pixel --- render.c | 4 ++-- 1 file 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"); }