summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2019-11-28 12:30:43 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-11-28 12:30:43 +0000
commite00730d14952a0e16c7b3011c28d7bd851f68660 (patch)
treeb966025521c7b47fa66a99c39d7abebd7d733c75 /server-client.c
parent5f5f029e3b3a782dc616778739b2801b00b17c0e (diff)
Fix bad merge.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/server-client.c b/server-client.c
index d8907f2a..2cfd8838 100644
--- a/server-client.c
+++ b/server-client.c
@@ -1340,14 +1340,6 @@ server_client_resize_force(struct window_pane *wp)
wp->sy <= 1)
return (0);
- memset(&ws, 0, sizeof ws);
- ws.ws_col = wp->sx;
- ws.ws_row = wp->sy - 1;
- if (wp->fd != -1 && ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
-#ifdef __sun
- if (errno != EINVAL && errno != ENXIO)
-#endif
- fatal("ioctl failed");
log_debug("%s: %%%u forcing resize", __func__, wp->id);
window_pane_send_resize(wp, -1);
@@ -1360,22 +1352,6 @@ server_client_resize_force(struct window_pane *wp)
static void
server_client_resize_pane(struct window_pane *wp)
{
- struct winsize ws;
-
- memset(&ws, 0, sizeof ws);
- ws.ws_col = wp->sx;
- ws.ws_row = wp->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 && errno != ENXIO)
-#endif
- fatal("ioctl failed");
log_debug("%s: %%%u resize to %u,%u", __func__, wp->id, wp->sx, wp->sy);
window_pane_send_resize(wp, 0);