mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Fullscreen on wayland is not centering/blackening screen.

Open judu opened this issue 10 years ago • 15 comments

Hi, I'm running mpv on an exherbo machine with wayland and the last stable Gnome-Shell on it. Before that I was running it on the same machine, but on X11, and everything was fine.

Since I switched to wayland, the fullscreen acts weirdly: the video is pushed to the top-right corner and maximised until either the height or the width hits the other side of the screen, and then the part that is not covered by the image still displays what's behind.

Here is what it looks like when not fullscreen (note that I also have no window decoration anymore): mpv-nofs-screenshot

And when in fullscreen: mpv-fs-screenshot

And here is the logs when I ran mpv (I fullscreened mpv, I unfullscreened it, I moved it a bit, so it might reflect in the logs): mpv-log.txt

I just saw that I switched to wayland almost at the same time I updated mpv to 0.14. I'm trying to build the old (0.13 version) back to check how it behaves.

In the mean time, here is my full install (w/ build) log of mpv 0.14: mpv-build-log.txt

judu avatar Jan 01 '16 17:01 judu

Same deal with mpv 0.13. I'm trying the scm just in case. I can apply any patch and try any configure options you might need.

(Oh, and happy new year!)

judu avatar Jan 01 '16 17:01 judu

note that I also have no window decoration anymore

That is expected. Wayland uses client-side window decorations. Neither do we want mpv to depend on a bloated toolkit just to draw the decorations, nor do we know which decorations to draw (there are going to be many wayland compositors, impossible for mpv to achieve a "native" look).

ghost avatar Jan 02 '16 13:01 ghost

Ok for the decoration stuff, it does not bother me at all, I just thought it might have been related :)

judu avatar Jan 03 '16 17:01 judu

Strangely, the video fullscreens and centers in weston.

bluerider avatar Jan 19 '16 17:01 bluerider

I confirm that.

judu avatar Jan 20 '16 00:01 judu

mpv uses the official shell protocol wl_shell, which is not correctly implement in gnome. gnome heavily relies on the new but still unstalbe xdg_shell.

giselher avatar Feb 07 '16 11:02 giselher

Fixed with: eb6b2b6e

giselher avatar Feb 07 '16 14:02 giselher

I just compiled mpv from the master branch with https://github.com/mpv-player/mpv/commit/eb6b2b6e50e6e3d3db41190ad818d8b966750734 applied. It doesn't seem to be fixed.

bluerider avatar Feb 07 '16 16:02 bluerider

Can you post a screenshot. EDIT: Are you using gnome? And what version?. EDIT2: Could you post a wayland protocol log. Run WAYLAND_DEBUG=1 mpv

giselher avatar Feb 07 '16 18:02 giselher

screenshot from 2016-02-07 13-26-01

mpv_wayland.txt

Gnome-shell 3.18.3-3

bluerider avatar Feb 07 '16 18:02 bluerider

Status update: I have an Idea for a solution but implementing takes a bit longer then expected.

giselher avatar Feb 13 '16 19:02 giselher

If you feel wl_shell is incorrectly implemented in GNOME, let us know so we can fix it.

magcius avatar Feb 14 '16 16:02 magcius

This issue still seems to exist under GNOME 3.20 and mpv 0.16.0, using vo=opengl.

mpv windowed:

mpv in fullscreen:

Weegee avatar Apr 03 '16 11:04 Weegee

This also doesn't behave right on weston. Instead of filling the screen, it takes the scales the window size to the closest screen border. At least weston seems to clear the background, though. No idea how to fix it, naively setting width=fs_width (and same for height) gives strange results.

ghost avatar Apr 03 '16 17:04 ghost

Fixed via #3123.

ghost avatar May 08 '16 17:05 ghost