Hmm, can you try this please instead? I don't have a mouse wheel...
Index: tty-keys.c
===================================================================
RCS file: /cvs/src/usr.bin/tmux/tty-keys.c,v
retrieving revision 1.66
diff -u -p -r1.66 tty-keys.c
--- tty-keys.c 8 May 2014 07:54:47 -0000 1.66
+++ tty-keys.c 27 May 2014 12:58:40 -0000
@@ -782,8 +782,8 @@ tty_keys_mouse(struct tty *tty, const ch
m->sy = y;
m->event = MOUSE_EVENT_DOWN;
}
- m->button = (b & MOUSE_MASK_BUTTONS);
}
+ m->button = (b & MOUSE_MASK_BUTTONS);
return (0);
}
On Sat, May 24, 2014 at 11:33:59AM +0100, Balazs Kezes wrote:
> 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
------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users