It is not OK to ignore SIGWINCH if SIOCGWINSZ reports the size has

unchanged, because it may have changed and changed back in the time
between us getting the signal and calling ioctl(). Always redraw when we
see SIGWINCH.
This commit is contained in:
nicm
2017-05-31 10:29:15 +00:00
parent 80c6b487dc
commit ea6428a5d2
3 changed files with 8 additions and 15 deletions

View File

@@ -1451,10 +1451,9 @@ server_client_dispatch(struct imsg *imsg, void *arg)
if (c->flags & CLIENT_CONTROL)
break;
if (tty_resize(&c->tty)) {
recalculate_sizes();
server_redraw_client(c);
}
tty_resize(&c->tty);
recalculate_sizes();
server_redraw_client(c);
if (c->session != NULL)
notify_client("client-resized", c);
break;