mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
TIOCSWINSZ: set ws_xpixel and ws_ypixel
This commit is contained in:
parent
c5b60253a7
commit
733223dd0c
1 changed files with 5 additions and 2 deletions
7
main.c
7
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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue