mpv-player / mpv-player/mpv

Window doesn't auto resize on Hyprland

Open
#12,946 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

down-upstream:hyprland os:linux vo:gpu:wayland
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information
  • mpv version: 0.36.0
  • Linux Distribution and Version: Archlinux, kernel version 6.6.1
  • Source of the mpv binary: Official Archlinux build
  • Window Manager and version: Hyprland version 0.30.0
Reproduction steps

Run mpv with --auto-window-resize=yes flag, and provide it with two input files that differ in aspect ratio or resolution.

$ mpv --config=no --auto-window-resize=yes --log-file=/tmp/mpv.log Downloads/vertical.jpg Downloads/horizontal.jpg

Screenshots for the first and second images being displayed.

Expected behavior

mpv resize its window to fit the second image resolution.

Actual behavior

mpv doesn't change its window size.

Log file

https://0x0.st/Hw1q.log

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 reported command with the two images under Hyprland and inspect /tmp/mpv.log alongside the linked screenshots. Trace the window-size update path for --auto-window-resize when the second image is loaded; done means the window resizes to fit the second image without regressing other window managers.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.