Fullscreen on wayland is not centering/blackening screen.
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):

And when in fullscreen:

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
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!)
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).
Ok for the decoration stuff, it does not bother me at all, I just thought it might have been related :)
Strangely, the video fullscreens and centers in weston.
I confirm that.
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.
Fixed with: eb6b2b6e
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.
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
Status update: I have an Idea for a solution but implementing takes a bit longer then expected.
If you feel wl_shell is incorrectly implemented in GNOME, let us know so we can fix it.
This issue still seems to exist under GNOME 3.20 and mpv 0.16.0, using vo=opengl.
mpv windowed:

mpv in fullscreen:

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.
Fixed via #3123.
