From 2f14134a30d266e0a3f9dbb9c8eeeb082b45f3c5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 2 Dec 2012 01:57:48 +0100 Subject: input: do not generate double clicks for mouse wheel Button 3 and 4 are mapped to the mouse wheel. Double click events for them annoying and not useful at all. I don't know about buttons 5-19; for all I know these could be mapped to wheels as well. Even if not, double click events are probably not very important for these. Disable double clicks for these as well. --- core/mp_fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/mp_fifo.c b/core/mp_fifo.c index fd8a87098e..f8410516d8 100644 --- a/core/mp_fifo.c +++ b/core/mp_fifo.c @@ -44,7 +44,7 @@ struct mp_fifo *mp_fifo_create(struct input_ctx *input, struct MPOpts *opts) static void put_double(struct mp_fifo *fifo, int code) { - if (code >= MOUSE_BTN0 && code < MOUSE_BTN_END) + if (code >= MOUSE_BTN0 && code <= MOUSE_BTN2) mp_input_feed_key(fifo->input, code - MOUSE_BTN0 + MOUSE_BTN0_DBL); } -- cgit v1.2.3