Closed Enzime closed 7 years ago
Can you give instructions how to reproduce this under i3 default settings for someone who doesn't know how to use i3?
If you run i3 without a config file, it will ask you to choose a modifier key (I'll say mod
).
To open a terminal, you just have to press mod+Enter
then you can run mpv as steps detailed in the post. Nothing else special required for reproducing this bug.
It seems like the OSC controls are positioned at the bottom of the real window for the first video, but later clips the controls are positioned as if the window tightly hugged the video area. I do not see the black padding bars as any color other than black though.
My guess would be that mpv's logic for resizing the window on resolution change doesn't deal with the fact that the window manager refuses to change the actual window size.
Works fine for me on xmonad, which also refuses to change the actual window size.
@haasn I've tested on bspwm, this bug is i3 specific as far as I know.
Also, the black padding bars changing colour moreso depend on what mpv decides to change them to, on some computers it's white for me, other colours it's been the background colour in Xresources, not really sure why/how, but the area definitely becomes mouse deadzone and the colour may or may not change (the colour change if it happens is usually the easiest to notice).
So when I do this, mpv covers half of the screen, while the terminal covers the other half. The initial window size covers the entire screen half. If you change to the next video, the window appears to stay the same size, but actually the mpv window is resized down to the video rectangle. The black bars are now not drawn by mpv anymore. It looks the same, but is very different.
Some trying shows that the XSetWMNormalHints call with PAspect set causes this. Can't be our problem then.
For the record, mpv itself can deal just fine with window managers which don't honor its aspect or size hints, but i3 apparently has problems with that case.
At least this is the situation as far as I could analyze it.
mpv version and platform
Running Arch Linux 64-bit with i3 as a window manager
Reproduction steps
Expected behavior
Actual behavior
Log files
http://sprunge.us/SdgS
Notes
From my own debugging, the issue would be fixed if I commented out the call to
vo_x11_highlevel_resize
insidevo_x11_config_vo_window
insidevideo/out/x11_common.c
except this would now mean that if the window was floating it no longer gets resized.Workaround
Add
keepaspect-window=no
to yourmpv.conf