| Summary: | X11: incorrect check for MIT-SHM extension availability | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Dmitry Levin <sdl.dl> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.10 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: | SDL2-2.0.10-alt-have_mitshm.patch | ||
Patch added, thanks! https://hg.libsdl.org/SDL/rev/0a7e1a5fa9df |
Created attachment 4149 [details] SDL2-2.0.10-alt-have_mitshm.patch Currently, the string returned by XDisplayName is used for the guess whether MIT_SHM extension is available. Unfortunately, this approach does not work when X11 connection is established using a unix domain forwarding. The correct method of checking MIT_SHM availability is XShmQueryExtension API. Proposed patch is attached.