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

WaylandBackend: Re-map toplevel upon becoming visible #1611

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

layercak3
Copy link

@layercak3 layercak3 commented Nov 3, 2024

When becoming invisible, a NULL buffer is attached to the toplevel's surface which unmaps it. The compositor resets their state and the surface may also be considered unconfigured. Upon becoming visible, the surface must be re-mapped using the same process during initialization (commit without a buffer and wait for configure) before we begin attaching an actual buffer. The default properties should also be recovered.

Fixes: #1456

@layercak3
Copy link
Author

I was able to hit assert( !m_Planes[0].GetCurrentState() ); somewhere according to some recent coredump, so I need to change that at some point.

When becoming invisible, a NULL buffer is attached to the toplevel's
surface which unmaps it. The compositor resets their state and the
surface may also be considered unconfigured. Upon becoming visible, the
surface must be re-mapped using the same process during initialization
(commit without a buffer and wait for configure) before we begin
attaching an actual buffer. The default properties should also be
recovered.

Fixes: ValveSoftware#1456
@MithicSpirit

This comment was marked as resolved.

@layercak3
Copy link
Author

I don't use the gamescope reaper or mangoapp (I start gamescope separately from my application process), so it's possible that I broke something there. Though, when I run gamescope vkcube and press ESC, I get 'Primary child shut down!' and both processes exit properly. I don't really understand why this patch would affect that.

@MithicSpirit

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wayland backend: high chance of aborting on subsequent attempts to create the gamescope window
2 participants