aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-12 13:42:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-12 13:42:49 +0000
commit727be358df89f2a8871d3f116e57acc9c0f2e6ec (patch)
tree35d643313418f808599272d4cde24ad3303cdf0a
parentterm: shorten application_synchronized_updates -> app_sync_updates (diff)
render: resize: TIOCSWINSZ: don't include padding in ws_{x,y}pixel
-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");
}