diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-22 21:35:29 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-22 21:35:29 +0000 |
commit | dbd8e478469a6eb01f1bada1984f902a51fe65c9 (patch) | |
tree | e9788584c378408db1fee64a73a57be001f1a1d6 /window.c | |
parent | ce7bf1083edd5679420d5288ae53a52759e0d51c (diff) | |
download | rtmux-dbd8e478469a6eb01f1bada1984f902a51fe65c9.tar.gz rtmux-dbd8e478469a6eb01f1bada1984f902a51fe65c9.tar.bz2 rtmux-dbd8e478469a6eb01f1bada1984f902a51fe65c9.zip |
Do pane resize ioctls once at the end of the server loop rather than
immediately.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -855,32 +855,16 @@ window_pane_error_callback( void window_pane_resize(struct window_pane *wp, u_int sx, u_int sy) { - struct winsize ws; - if (sx == wp->sx && sy == wp->sy) return; wp->sx = sx; wp->sy = sy; - memset(&ws, 0, sizeof ws); - ws.ws_col = sx; - ws.ws_row = sy; - screen_resize(&wp->base, sx, sy, wp->saved_grid == NULL); if (wp->mode != NULL) wp->mode->resize(wp, sx, sy); - if (wp->fd != -1 && ioctl(wp->fd, TIOCSWINSZ, &ws) == -1) -#ifdef __sun - /* - * Some versions of Solaris apparently can return an error when - * resizing; don't know why this happens, can't reproduce on - * other platforms and ignoring it doesn't seem to cause any - * issues. - */ - if (errno != EINVAL) -#endif - fatal("ioctl failed"); + wp->flags |= PANE_RESIZE; } /* |