mpv-player / mpv-player/mpv

Return window to original screen after fullscreen exit

Open
#11,272 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Expected behavior of the wanted feature

I have multiple monitors (2, in fact).
With fs-sreen=1, when I open MPV on second screen, and go to fullscreen, MPV opens up on first screen (as expected).
After I exit fullscreen, MPV stays on first screen.

I'd like it to go on second screen because that's where it was before.

Alternative behaviour

I understand that not everyone might want that, so it might be optional, only when screen=N is set.

Additional information

I use KDE Plasma (5.26 atm) and run MPV under KWin Wayland session.
I don't know if it already works like this and this is only the issue for this environment. In that case it's less broad feature request or even bug report I guess.

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 tracing mpv's fullscreen and screen=N handling under KDE Plasma/KWin Wayland. Reproduce the two-monitor scenario, then determine how the original screen is tracked across fullscreen exit. Done means mpv returns to the screen where it was opened, while preserving the optional screen=N behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.