Skip to content

osc: add back hover_sec in draw-preview - #17937

Merged
kasper93 merged 1 commit into
mpv-player:masterfrom
N-R-K:nrk/hover_sec
May 20, 2026
Merged

osc: add back hover_sec in draw-preview#17937
kasper93 merged 1 commit into
mpv-player:masterfrom
N-R-K:nrk/hover_sec

Conversation

@N-R-K

@N-R-K N-R-K commented May 18, 2026

Copy link
Copy Markdown
Contributor

this was initially part of draw-preview but was later moved to a separate property because it was deemed useful outside of just thumbnail preview. however this causes bugs when a thumbnailer observes draw-request and the draw rectangle doesn't change (e.g due to getting clamped around the border).

add back hover_sec which makes the draw-request more self contained and removes this footgun.

Fixes: #17518 (comment)

@kasper93

Copy link
Copy Markdown
Member

/cc @na-na-hi

@na-na-hi

na-na-hi commented May 20, 2026 via email

Copy link
Copy Markdown
Contributor

this was initially part of draw-preview but was later moved to a
separate property because it was deemed useful outside of just
thumbnail preview. however this causes bugs when a thumbnailer
observes draw-request and the draw rectangle doesn't change (e.g
due to getting clamped around the border).

add back hover-sec which makes the draw-request more self
contained and removes this footgun.

Fixes: mpv-player#17518 (comment)
@N-R-K

N-R-K commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

And hover_sec should be hover-sec to keep consistent naming.

Forgot that you can just do the ["string"] syntax to have - in member names. Updated.

@kasper93
kasper93 merged commit 59c91de into mpv-player:master May 20, 2026
33 of 34 checks passed
@N-R-K
N-R-K deleted the nrk/hover_sec branch May 20, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants