mpv-player / mpv-player/mpv

mpv window buttons misaligned with Vulkan on Wayland+NVIDIA (580.95.05)

Open
#16,977 0 comments 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

mpv Information
mpv v0.40.0-415-g6b0139114 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Oct 28 2025 23:50:59
libplacebo version: v7.357.0 (v7.351.0-88-g11b3350f)
FFmpeg version: N-121549-gc7a2b31f84
FFmpeg library versions:
   libavcodec      62.16.100
   libavdevice     62.2.100
   libavfilter     11.9.100
   libavformat     62.6.101
   libavutil       60.15.100
   libswresample   6.2.100
   libswscale      9.3.100
Other Information
- Linux version: Ubuntu 24.04.3 LTS
- Kernel Version: Linux username-MACHC-WAX9 6.14.0-33-generic #33~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 17:02:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
- GPU Model: 00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-U GT2 [UHD Graphics] [8086:9b41] (rev 02)
- Mesa/GPU Driver Version: Mesa 25.0.7-0ubuntu0.24.04.2 (LLVM 20.1.2), NVIDIA 580.95.05
- Window Manager and Version: Mutter (from GNOME Shell 46.0)
- Source of mpv: ~/Apps/mpv-build/mpv/build/mpv
- Latest known working version: v0.40.0-415-g6b0139114 but only in XORG + Vulkan or Wayland + OpenGL
- Issue started after the following happened: I opened a sample video in MPV during my current Wayland session.
Reproduction Steps
  1. Start a Wayland session (GNOME/Mutter).
  2. Ensure the NVIDIA proprietary driver (version 580.95.05) is active and nvidia-drm.modeset=1 is enabled.
  3. Launch mpv with the Vulkan backend (this is the default, so no extra flags needed) and open any video file. ~/Apps/mpv-build/mpv/build/mpv /path/to/any/video.mp4
  4. Ensure the mpv window is not maximized and not fullscreen.
  5. Attempt to click the window control buttons (Minimize, Maximize, Close) in the title bar drawn by mpv.
Expected Behavior

Clicking any part of click target areas of the visible buttons should lead to their corresponding functions

  • Clicking the Minimize button should minimize the window.
  • Clicking the Maximize button should maximize the window.
  • Clicking the Close button should close the window.
  • The click targets should align perfectly with the visible buttons.
Actual Behavior

The click target areas for the window control buttons are misaligned horizontally only when the window is not maximized or fullscreen. The clickable area is shifted noticeably to the right of the visible button icons (Minimize, Maximize, Close).:

  • Clicking the Minimize button does nothing.
  • Clicking the Maximize button actually minimizes the window.
  • Clicking the Close button actually maximizes the window.
  • The click targets for the window control buttons are misaligned with their visual representation, only in the non-maximized window state.
  • To activate a button's function, the user must click slightly to the right of the corresponding icon, rather than directly on it.

Importantly, this misalignment issue does not occur under the following conditions:

  • When using the OpenGL backend (--gpu-api=opengl) within the same Wayland session.
  • When using the Vulkan backend within an Xorg session.
  • When the mpv window is maximized or fullscreen (using Vulkan on Wayland).
Log File

mpv_bug_report.txt

Sample Files

This issue occurs with any video file played under the specified conditions; a specific sample file is not required to reproduce it.

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

  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

Reproduce the issue with the listed mpv command in a Wayland GNOME/Mutter session using Vulkan, then compare it with OpenGL on Wayland and Vulkan on Xorg. Use mpv_bug_report.txt and trace the Vulkan/Wayland window-control hit testing; done means the visible and clickable Minimize, Maximize, and Close buttons align in a non-maximized window.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
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.