mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 23:02:37 +00:00
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.
This commit is contained in:
parent
e0cf90a0c8
commit
447da032a3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user