mpv-player / mpv-player/mpv

Moving a fullscreen mpv window from one monitor to another results in only the top-left quarter of the video being visible

Open
#13,844 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:linux
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:

Ekrano nuotrauka iš 2024-04-09 10-24-59

Ekrano nuotrauka iš 2024-04-09 10-26-10

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:

Ekrano nuotrauka iš 2024-04-09 10-37-18

I'm using a Wayland session.

  1. Launch mpv somevideofile
  2. Make it fullscreen with f
  3. Press Super to enter gnome-shell's overview
  4. Drag the mpv window from the upper (external) screen to the lower one
  5. 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.

Ekrano nuotrauka iš 2024-04-09 10-24-59

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.

Ekrano nuotrauka iš 2024-04-09 10-26-10

Log file

output.txt

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.