这是indexloc提供的服务,不要输入任何密码
Skip to content

When using Wayland, the window is too big, it "jumps" when I start dragging it #17048

@fstanis

Description

@fstanis

mpv Information

mpv v0.40.0-dirty Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0 (v7.349.0)
FFmpeg version: n8.0
FFmpeg library versions:
   libavcodec      62.11.100
   libavdevice     62.1.100
   libavfilter     11.4.100
   libavformat     62.3.100
   libavutil       60.8.100
   libswresample   6.1.100
   libswscale      9.1.100

Other Information

- Linux version: Pop!_OS 24.04 LTS
- Kernel Version: 6.16.3-76061603-generic
- Window Manager and Version: COSMIC `cosmic-comp 0.1.0`
- Source of mpv: flatpak

Reproduction Steps

  1. Play any video with a vo set to something that uses Wayland:

    • Happens with gpu, gpu-next, dmabuf-wayland
    • Doesn't happen with x11, xv, vaapi
  2. Resize the window to be as large as possible (without maximizing) or use something like autofit=90%.

  3. Try dragging it.

Expected Behavior

The window drags normally, i.e. same behavior as when not using Wayland or when the window is small (e.g. autofit=30%, actual cutoff seems to be at 62% for me).

Actual Behavior

The window initially "jumps" so that the top middle of the window is aligned with the mouse pointer. This is especially visible when using window dragging, but happens when dragging via the title bar as well.

This screencap doesn't capture the mouse pointer, but shows what happens when I start dragging from the bottom right corner:

Image

Log File

output.txt

Sample Files

No response

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions