aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-16 14:47:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-16 14:47:09 +0000
commit733223dd0cb97b9f4f6046e3d87bee4f0d61b072 (patch)
tree09e73bf029834957dd7734d73834defbb3edc342 /main.c
parentvt: cell now tracks attributes (bold, italic, underline etc) (diff)
TIOCSWINSZ: set ws_xpixel and ws_ypixel
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files 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");
}