-
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
fullscreen: init floating on disable without size #3854
Conversation
@minus7 does this fix your issue? |
The window size isn't zero anymore, but until I move the window, mpv's content is larger than the window: Xfce4-terminal plays nice with it tough (yes this does fix the immediate issue) Thanks for the quick fix, @RedSoxFan |
cb94242
to
f9e2503
Compare
@minus7 can you try again? |
No change |
f9e2503
to
493c057
Compare
@minus7 how about now? |
If a container gets mapped as fullscreen and set to floating by criteria, the size and location are never set for the floating container. This adds a check in container_fullscreen_disable for a width or height of 0 and calls container_init_floating
493c057
to
9b58659
Compare
On IRC, it was determined that this only happens when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks! |
Fixes #3850
If a container gets mapped as fullscreen and set to floating by
criteria, the size and location are never set for the floating
container. This adds a check in container_fullscreen_disable for a
width or height of 0 and calls container_init_floating
Note that the content may be smaller than the container due to the
natural size being larger than the maximum floating size and the
client giving a smaller surface of the same aspect ratio. I think
this is related to #2176 (or at least the discussion in the issue)