Repository navigation
Window system mismatch - #3866
Merged
Merged
Conversation
A window provider running on X11 passes externalWindowHandle (or parentWindowHandle) and no externalWlDisplay. The offscreen fallback accepted that, ignored the X11 window and rendered into a pbuffer, so the application showed a black window instead of reporting the backend mismatch. The existing assert only ran once an onscreen window had been chosen, so it never saw this case. Validate the window parameters for every window before choosing the offscreen path, including the externalWlSurface/externalWlDisplay pair.
The EGL backend is built for either X11 or Wayland, but SDL picks its video driver independently, so it can select the other one (X11 on a Wayland session, or the reverse). The window is then of the wrong type and either fails or, with the offscreen fallback, shows nothing. Unless the application set SDL_VIDEODRIVER itself, default it to the driver matching the build, and report a failed video init instead of continuing.
This is the reverse of the Wayland case: an application can force SDL_VIDEODRIVER=wayland for an X11 build. The X11 window's assert only runs once an X11 display is available; without one the offscreen fallback accepted the Wayland handles, ignored them and rendered into a pbuffer. Check for the Wayland handles before choosing the offscreen window and report the backend mismatch.
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.
No description provided.