=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/server-client.c,v retrieving revision 1.117 retrieving revision 1.118 diff -u -r1.117 -r1.118 --- src/usr.bin/tmux/server-client.c 2014/02/14 14:00:18 1.117 +++ src/usr.bin/tmux/server-client.c 2014/02/17 22:42:20 1.118 @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.117 2014/02/14 14:00:18 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.118 2014/02/17 22:42:20 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -324,9 +324,9 @@ else if (statusat > 0 && m->y >= (u_int)statusat) m->y = statusat - 1; - /* Is this a pane selection? Allow down only in copy mode. */ + /* Is this a pane selection? */ if (options_get_number(oo, "mouse-select-pane") && - (m->event == MOUSE_EVENT_DOWN || wp->mode != &window_copy_mode)) { + (m->event == MOUSE_EVENT_DOWN || m->event == MOUSE_EVENT_WHEEL)) { window_set_active_at(wp->window, m->x, m->y); server_redraw_window_borders(wp->window); wp = wp->window->active; /* may have changed */