mpv-player / mpv-player/mpv

Cannot cancel mouse button inputs by moving the cursor out of the window before releasing the mouse button

Open
#4,431 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:win
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

mpv version and platform

0.25.0, Windows 7 SP1

Reproduction steps

Add this to input.conf:
MOUSE_BTN1 quit
Run mpv.
Press and hold middle mouse button anywhere in the mpv window, move the mouse cursor out of the mpv window and release middle mouse button.

Expected behavior

mpv shouldn't execute the command assigned to middle mouse button.

Actual behavior

mpv executes the command (quits).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior on Windows 7 with mpv 0.25.0 and the input.conf entry MOUSE_BTN1 quit. Trace how a held mouse button is handled when the cursor leaves the mpv window, then verify that releasing it outside does not execute the assigned command while normal in-window input still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.