=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/server-client.c,v retrieving revision 1.263 retrieving revision 1.264 diff -c -r1.263 -r1.264 *** src/usr.bin/tmux/server-client.c 2018/11/19 13:35:41 1.263 --- src/usr.bin/tmux/server-client.c 2018/12/18 13:20:44 1.264 *************** *** 1,4 **** ! /* $OpenBSD: server-client.c,v 1.263 2018/11/19 13:35:41 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: server-client.c,v 1.264 2018/12/18 13:20:44 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 923,928 **** --- 923,929 ---- { struct mouse_event *m = &c->tty.mouse; struct session *s = c->session; + struct winlink *wl; struct window *w; struct window_pane *wp; struct timeval tv; *************** *** 935,941 **** /* Check the client is good to accept input. */ if (s == NULL || (c->flags & (CLIENT_DEAD|CLIENT_SUSPENDED)) != 0) return; ! w = s->curw->window; /* Update the activity timer. */ if (gettimeofday(&c->activity_time, NULL) != 0) --- 936,943 ---- /* Check the client is good to accept input. */ if (s == NULL || (c->flags & (CLIENT_DEAD|CLIENT_SUSPENDED)) != 0) return; ! wl = s->curw; ! w = wl->window; /* Update the activity timer. */ if (gettimeofday(&c->activity_time, NULL) != 0) *************** *** 1126,1132 **** if (c->flags & CLIENT_READONLY) return; if (wp != NULL) ! window_pane_key(wp, c, s, key, m); } /* Client functions that need to happen every loop. */ --- 1128,1134 ---- if (c->flags & CLIENT_READONLY) return; if (wp != NULL) ! window_pane_key(wp, c, s, wl, key, m); } /* Client functions that need to happen every loop. */