mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-27 05:10:20 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user