Skip to content
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

Merged
merged 1 commit into from
Mar 10, 2019

Conversation

RedSoxFan
Copy link
Member

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)

@ddevault
Copy link
Contributor

@minus7 does this fix your issue?

@minus7
Copy link
Contributor

minus7 commented Mar 10, 2019

The window size isn't zero anymore, but until I move the window, mpv's content is larger than the window: screenshot-2019-03-10T21:29:31Z

Xfce4-terminal plays nice with it tough (yes this does fix the immediate issue)

Thanks for the quick fix, @RedSoxFan

@RedSoxFan
Copy link
Member Author

@minus7 can you try again?

@minus7
Copy link
Contributor

minus7 commented Mar 10, 2019

No change

@RedSoxFan
Copy link
Member Author

@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
@RedSoxFan
Copy link
Member Author

The window size isn't zero anymore, but until I move the window, mpv's content is larger than the window:

On IRC, it was determined that this only happens when --force-window=immeadiate (and running as a xwayland client), which forces mpv to map at 640x480. After some investigation, I'm pretty sure this falls under the same core issue as #3029 so I'd like to tackle that as a separate PR

Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emersion emersion merged commit a729bda into swaywm:master Mar 10, 2019
@emersion
Copy link
Member

Thanks!

@RedSoxFan RedSoxFan deleted the fix-fs-map-float-criteria branch March 10, 2019 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants