From 733223dd0cb97b9f4f6046e3d87bee4f0d61b072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 16 Jun 2019 16:47:09 +0200 Subject: [PATCH] TIOCSWINSZ: set ws_xpixel and ws_ypixel --- main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 4eb31a13..e339ea61 100644 --- a/main.c +++ b/main.c @@ -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"); }