On 2014-05-23 11:59 +0100, Nicholas Marriott wrote: > Shouldn't we instead reset m->button when the mouse wheel is used?
Yep, that works as well. I've chosen 3 as the reset value because that's what I've seen in server_client_create as initialization value. Here's the patch: diff --git a/tty-keys.c b/tty-keys.c index 37b8960..00ec833 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -764,6 +764,7 @@ tty_keys_mouse(struct tty *tty, const char *buf, size_t len, size_t *size) else if (b == 1) m->wheel = MOUSE_WHEEL_DOWN; m->event = MOUSE_EVENT_WHEEL; + m->button = 3; } else if ((b & MOUSE_MASK_BUTTONS) == 3) { if (~m->event & MOUSE_EVENT_DRAG && x == m->x && y == m->y) m->event = MOUSE_EVENT_CLICK; -- Balazs ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users