Moving a fullscreen mpv window from one monitor to another results in only the top-left quarter of the video being visible
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
Important Information
Provide following Information:
- mpv version: current git master (commit d3941f235a73f0eb881919bafe208f63ad6a33d5) as well as 0.36.0 from Ubuntu
- Linux Distribution and Version: Ubuntu 23.10
- Source of the mpv binary: self-built
- If known which version of mpv introduced the problem: no
- Window Manager and version: GNOME Shell 45.2
- GPU model, driver and version: Intel UHD Graphics 620
- Possible screenshot or video of visual glitches:
Reproduction steps
This requires a multi-screen setup. I have a laptop with one external monitor connected, positioned above the internal LCD. The laptop's screen is 1920x1080, the external monitor is 2560x1080:
I'm using a Wayland session.
- Launch
mpv somevideofile - Make it fullscreen with f
- Press Super to enter gnome-shell's overview
- Drag the mpv window from the upper (external) screen to the lower one
- Press Super to exit overview
(I can reproduce this with --no-config.)
Expected behavior
The mpv window is fullscreened on the other monitor.
Actual behavior
The mpv window (all black) is fullscreened in the right place, but the video itself is in a weird subwindow that's offset both horizontally and vertically by 50%, resulting in the upper-left corner of the video being positioned in the center of the monitor, and three fourths of the video being clipped by the screen, as depicted in my first screenshot.
If I enter the overview again, I can see that the mpv window has a subwindow of the same size that is offset by +50%/+50% as seen in my second screenshot.
Log file
Sample files
This works with any video.
A similar thing happens if I unplug the external monitor on which a video was being played and mpv gets moved to the inner monitor.
Curiously, if I use Alt-space to get GNOME's window menu and choose "Move to monitor below", the bug doesn't appear.
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
Start by reproducing the issue under a Wayland GNOME session with the multi-monitor layout described, both with and without configuration, and inspect output.txt. Compare moving the fullscreen window through GNOME Overview with using “Move to monitor below” and unplugging the external monitor; done means the video remains correctly sized and positioned after the move.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100