summaryrefslogtreecommitdiffstats
path: root/input/input.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-26 20:03:11 +0100
committerwm4 <wm4@nowhere>2016-03-26 20:03:11 +0100
commit447da032a3ee3fab6a97171293186b6e3816fe83 (patch)
tree660f782c2b7e224bffcb5ac8a350a2bca089b680 /input/input.c
parente0cf90a0c83c2bea51fa38f1f2a4c5c49f8c1dc5 (diff)
downloadmpv-447da032a3ee3fab6a97171293186b6e3816fe83.tar.bz2
mpv-447da032a3ee3fab6a97171293186b6e3816fe83.tar.xz
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.
Diffstat (limited to 'input/input.c')
-rw-r--r--input/input.c2
1 files changed, 1 insertions, 1 deletions
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) {