diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/input/input.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/input/input.c b/core/input/input.c index 7ae76b9e04..66d78b48c6 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -1536,6 +1536,10 @@ static void trigger_mouse_leave(struct input_ctx *ictx, char *new_section) void mp_input_set_mouse_pos(struct input_ctx *ictx, int x, int y) { + // we're already there + if (ictx->mouse_vo_x == x && ictx->mouse_vo_y == y) + return; + ictx->mouse_event_counter++; ictx->mouse_vo_x = x; ictx->mouse_vo_y = y; |