=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window.c,v retrieving revision 1.261 retrieving revision 1.262 diff -c -r1.261 -r1.262 *** src/usr.bin/tmux/window.c 2020/05/16 16:35:13 1.261 --- src/usr.bin/tmux/window.c 2020/05/16 16:50:55 1.262 *************** *** 1,4 **** ! /* $OpenBSD: window.c,v 1.261 2020/05/16 16:35:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: window.c,v 1.262 2020/05/16 16:50:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 440,452 **** { struct window *w = wp->window; struct winsize ws; if (wp->fd == -1) return; memset(&ws, 0, sizeof ws); ws.ws_col = wp->sx; ! ws.ws_row = wp->sy + yadjust; ws.ws_xpixel = w->xpixel * ws.ws_col; ws.ws_ypixel = w->ypixel * ws.ws_row; if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1) --- 440,454 ---- { struct window *w = wp->window; struct winsize ws; + u_int sy = wp->sy + yadjust; if (wp->fd == -1) return; + log_debug("%s: %%%u resize to %u,%u", __func__, wp->id, wp->sx, sy); memset(&ws, 0, sizeof ws); ws.ws_col = wp->sx; ! ws.ws_row = sy; ws.ws_xpixel = w->xpixel * ws.ws_col; ws.ws_ypixel = w->ypixel * ws.ws_row; if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1) *************** *** 991,997 **** wme = TAILQ_FIRST(&wp->modes); if (wme != NULL && wme->mode->resize != NULL) wme->mode->resize(wme, sx, sy); - wp->flags |= (PANE_RESIZE|PANE_RESIZED); } --- 993,998 ----