Created attachment 110817 [details] mpv and corresponding wayland events To reproduce start mpv like, > mpv --gpu-context=wayland --fullscreen videofile Expected result --- mpv is fullscreen when starting. Actual result --- mpv tries to go fullscreen but is limited to the video resolution and there is just blackness in the rest of the screen. Check the attachment for the logs with WAYLAND_DEBUG=1. Related to this bug, when mpv is made fullscreen later and you tab switch, the application gets resized but borders are missing and screen is in a similar state as previously described. Tab switching shouldn't cause a resize (that is the behaviour in kwin_x11).
Can you test the same with weston? From the wayland debug output I don't see any issues. The window is correctly resized to fullscreen and according to the log mpv notices this and scales the video source. Also the buffer is requested in correct size. I don't see what in KWin could cause any problems. Thus I would like to know how other compositors act in this case.
Created attachment 110837 [details] mpv and corresponding wayland events (weston) I cannot reproduce it in weston, attaching the logs. In the previous log, the interesting part to look at is: > [889030.075] zxdg_toplevel_v6@15.configure(0, 0, array) > [vo/gpu/wayland] Resizing due to xdg from 1366x768 to 1280x720 > [889030.125] zxdg_surface_v6@3.configure(38258) > [889030.139] -> zxdg_surface_v6@3.ack_configure(38258) > [cplayer] starting audio playback These xdg events don't happen in weston.
Thanks that's a help
That configure event seems to be in reply to some state changes.
From my side, mpv is started fullscreen and I don't perform any operation. I don't even see the resize, I think it happens well before the video is rendered.
Unfortunately the mpv version my distribution provides doesn't provide xdg-shell support yet. Thus I cannot really investigate.
Sending null configure event sizes should be fixed in master/5.15. Testing opening fullscreen worked here. Please reopen if there's still an issue