SUMMARY Already reported on MPV bug tracker https://github.com/mpv-player/mpv/issues/8585 Apparently it's a kwin issue: "AFAIK this is left up to the window manager/wayland compositor to handle, and KWin behaves differently in this regard on X11 vs. Wayland. Report it to them." STEPS TO REPRODUCE 1. start Wayland session 2. use MPV to open a video with resolution higher than screen resolution 3. EXPECTED RESULT the same behavior that occurs on X11: MPV fits to the screen. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.21.0 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 Graphics Platform: Wayland
Same thing happens here.
It will be fixed once mpv adds support for xdg_toplevel.configure_bounds https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/41
wayland-protocols with xdg_toplevel.configure_bounds has been released. If mpv starts using it, this issue will be fixed.
Thank you very much Vlad. :)
Hi Vlad xdg_toplevel.configure_bounds support was finally added to mpv. I'm using mpv-git on Arch Linux, the video is no longer partially out of the screen after the provided steps, but the playback controls on bottom are hidden behind Plasma panel. Is this a kwin bug or a mpv bug?
Not sure, I would need to take another look at it.
kwin sends mpv the size of the work area, but mpv still provides a buffer bigger than the specified configure bounds, I assume that's because of the aspect ratio constraint. Not much that we can do, try disabling aspect ratio constraint in mpv.
(In reply to Vlad Zahorodnii from comment #7) > try disabling aspect ratio constraint in mpv. I'm not sure if I'm doing it right, but playback controls of mpv are still behind Plasma panel when running the following: $ mpv --video-aspect-override=no video.mkv
Try mpv --keepaspect=no <video> instead
or put keepaspect=no in mpv config file
(In reply to Vlad Zahorodnii from comment #10) > or put > > keepaspect=no > > in mpv config file Thanks, Vlad, it works. :) Should I report the issue with playback controls behind Plasma panel on Wayland to mpv devs?