-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Inconsistencies with fullscreen state #3570
Comments
I can't seem to reproduce. |
What OS? |
|
x11? |
Yes. Weird thing - I tried reproducing it now and:
If this is of any help, I'm using bspwm, but I don't think it's WM issue. |
Part of logs with
This is interesting:
which looks as if WM decided to resize mpv on its own... but I fail to see why it would do so, and in such an unreliable fashion. |
OK. There's a conflict between WM's fullscreen state and mpv's fullscreen state. Basically WM is too persistent and when it detects window size change it remembers that it was supposed to be fullscreen and immediately resizes it back. But it also might be an issue with the way mpv reports X11 fullscreen flags (if there's such a thing). I believe this behavior was introduced in 4d75514. |
Can you definitely confirm? |
OK on it |
Certainly interesting. Possibly a race condition, now that I think about it. |
I can reproduce the following way:
Unsurprisingly, this hack, which I declared as "awful", is biting back: https://github.com/mpv-player/mpv/blob/master/video/out/x11_common.c#L980 The problem is that it doesn't really change the VO flag as it is copied to the VO (because the option hasn't been set "properly" and the shadow copy of the flag has not been updated), which makes it see fullscreen=0, and switch back. I have a solution for this in mind by somehow properly reporting the new fullscreen state back to the playback core, where it'll update the flag correctly. I'll get to it tomorrow. |
mpv version and platform
git master
Reproduction steps
config
:scripts/reset_view.lua
:Run
mpv
on*.jpg
Exit fullscreen by hitting f
Observe how it reenters fullscreen upon navigation to the next file
Expected behavior
It shouldn't touch
fullscreen
.Actual behavior
It reenters fullscreen if I set any properties (except rotation) on either
end-file
orstart-file
.The text was updated successfully, but these errors were encountered: