Fix gamescope crash during Steam startup in Wayland backend - #2305
Merged
misyltoad merged 2 commits intoAug 2, 2026
Conversation
ClipPlane only clips against the right and bottom edges of the output, so a plane whose origin is already past either edge clips to a negative width or height, which scales the viewport source rectangle negative as well. wp_viewport rejects that with a bad_value protocol error and the host compositor drops our connection. The cursor hits this whenever the focus window is upscaled and the pointer sits outside it, such as while Steam is still smaller than the output during startup. Present no buffer for such a plane. Planes that keep at least one pixel on screen are unchanged.
The input thread aborts on any display error without saying anything, so a protocol error from the host compositor leaves nothing behind but a core dump. Print the errno first, or the offending interface, object and error code when the display failed with EPROTO.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a crash when moving a mouse cursor during Steam start-up in a nested Wayland session on KWin.