-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong mpv floating window size and borders #3718
Comments
If the option
Can confirm, mpv seems to always render with the initial aspect ratio, so after resizing the image/video may spill out of the container. |
Maybe related to #3593 |
Thanks for the patch, it works better now but there are still issues with resizing: mismatch window - borders size, which might also produce artifacts on the background tiling area. |
Can you provide more information and possibly reproduction steps and/or a screenshot? |
Using this minimal config
produces the following behaviour: First resizing vertically: If a video is playing, the transparent areas seen here may become corrupted. Then horizontally: Logs: Note: If using the X11 backend for mpv (e.g. |
The first screenshot is due to mpv keeping the aspect ratio constant and sending a surface smaller than the view. In this situation we just center the surface in the view. I think this is working as intended, but it is possible that it could be changed to have sway render black bars. The second is #3029 |
This problem occurs when mpv is configured to run as a floating window.
Similar to the old #680, although version 0.15.2 worked as expected for me.
It is maybe related to #2176 and #3106
intel graphics
sway version 1.0-rc1-74-g7baaa3a0 (Feb 18 2019, branch 'master')
wlroots version 0.3-fd0b625ab
mpv version 0.29.0-134-g8b563a0346
Configuration File:
Default configuration with the addition:
for_window [app_id="mpv"] floating enable
Debug Log:
https://gist.github.com/bitraid/86638d2d95c54bdb2048586b18ccd5c3
mpv Log:
https://gist.github.com/bitraid/206dfb02cc87f32d41900cd7e7d5e02e
mpv /usr/local/share/backgrounds/sway/Sway_Wallpaper_Blue_768x1024.png --no-config --image-display-duration=inf -v
Expected behavior:
The mpv floating window should have the dimensions of the playing image/video (as it happens with version 0.15.2 and i3wm).
Actual behavior:
The mpv window has a smaller size and its borders are incorrect. Furthermore, switching to the tiling area after scaling the mpv window to its either half, normal or double size (Alt+0, Alt+1, Alt+2), resets the window size. Manual resize of the window seems buggy, messes up the borders and can't increase after a certain size.
The text was updated successfully, but these errors were encountered: