=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/input-keys.c,v retrieving revision 1.21 retrieving revision 1.22 diff -c -r1.21 -r1.22 *** src/usr.bin/tmux/input-keys.c 2011/01/03 23:35:21 1.21 --- src/usr.bin/tmux/input-keys.c 2011/04/19 21:31:33 1.22 *************** *** 1,4 **** ! /* $OpenBSD: input-keys.c,v 1.21 2011/01/03 23:35:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: input-keys.c,v 1.22 2011/04/19 21:31:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 220,224 **** --- 220,231 ---- buf[len++] = m->y + 33; } bufferevent_write(wp->event, buf, len); + } else if ((m->b & MOUSE_BUTTON) != MOUSE_2) { + if (options_get_number(&wp->window->options, "mode-mouse") && + window_pane_set_mode(wp, &window_copy_mode) == 0) { + window_copy_init_from_pane(wp); + if (wp->mode->mouse != NULL) + wp->mode->mouse(wp, NULL, m); + } } }