From 447da032a3ee3fab6a97171293186b6e3816fe83 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Mar 2016 20:03:11 +0100 Subject: input: do not force double-click emulation for artificial commands E.g. "mouse 100 100 1 double" did not actually process the double-click, because double-click emulation is on by default. So the user would have to send two successive clicks instead. This is probably not expected, so disable this weird logic for artificial input. Fixes #2899. --- input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index ff7dcea67e..b6ed77debf 100644 --- a/input/input.c +++ b/input/input.c @@ -625,7 +625,7 @@ static void mp_input_feed_key(struct input_ctx *ictx, int code, double scale, } double now = mp_time_sec(); // ignore system-doubleclick if we generate these events ourselves - if (opts->doubleclick_time && MP_KEY_IS_MOUSE_BTN_DBL(unmod)) + if (!force_mouse && opts->doubleclick_time && MP_KEY_IS_MOUSE_BTN_DBL(unmod)) return; interpret_key(ictx, code, scale); if (code & MP_KEY_STATE_DOWN) { -- cgit v1.2.3