Observed clipboard doesn't update unless the window is hovered or playing a video.
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
mpv Information
mpv v0.39.0-532-gd9eb9ed8 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
built on Dec 25 2024 18:04:34
libplacebo version: v7.350.0 (v7.349.0-30-g056b852-dirty)
FFmpeg version: N-118168-gfe04b93af
FFmpeg library versions:
libavcodec 61.28.100
libavdevice 61.4.100
libavfilter 10.6.101
libavformat 61.9.101
libavutil 59.53.100
libswresample 5.4.100
libswscale 8.13.100
Other Information
- Windows version: WIN10 22H2
- GPU model, driver and version: RX570 24.9.1
- Source of mpv: zhongfly
- Latest known working version: N/A
- Issue started after the following happened: N/A
Reproduction Steps
- Set
clipboard-monitor=yes - Open
mpvin idle or with an image - Copy anything to clipboard
- Hover over the
mpvwindow
Expected Behavior
Observing clipboard should update without hovering over the window even when no video is playing.
Actual Behavior
As per https://github.com/mpv-player/mpv/discussions/15565#discussioncomment-11668922:
Is it expected that on Windows(10) observing clipboard does anything only when mpv is playing a video(can be paused) ?
On my side when its in idle or 'playing' an image, it requires hovering over the window to actually update. Docs don't mention anything about it in clipboard-monitor, but in the PR there was something about Wayland being only updated on window focus, nothing about Windows and hovering over it though. Should this be a potential bug report ?
However, i had it the other way around in the mentioned working scenario, the video can't be paused for it to work.
Idle example:
https://github.com/user-attachments/assets/a70848ee-03d5-4f3c-9fe7-e4483d65b313
Video paused/playing example:
https://github.com/user-attachments/assets/08b45453-0a98-42c6-ae3b-a7fcc7e7892e
Log File
clipboard_Idle.txt
clipboard_Video.txt
Sample Files
mp.observe_property('clipboard/text', 'native', function (_, clipboard)
mp.msg.info(clipboard)
end)
I carefully read all instruction and confirm that I did the following:
- I tested with the latest mpv version to validate that the issue is not already fixed.
- I provided all required information including system and mpv version.
- I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of
--log-file=output.txt. - I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- I attached the full, untruncated log file.
- I attached the backtrace in the case of a crash.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report with clipboard-monitor=yes and the supplied Lua observer, testing idle, image, paused-video, and playing-video states on Windows 10. Compare the attached idle and video logs with the expected behavior: clipboard changes should be observed without hovering over the window, and verify the result in each state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100