| Summary: | Wayland: fullscreen windows not rendered properly | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Bryan Cain <bryancain3> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | bryancain3, gabomdq |
| Version: | HG 2.1 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: | Proposed patch | ||
Thanks, I added your patch here: https://hg.libsdl.org/SDL/rev/e5f584f77609 One odd effect I noticed in our tests (testgles2, testrendercopyex) is that the first resizes sent to the window are ignored, but that might be related to the way the tests handle those messages during initialization. |
Created attachment 1635 [details] Proposed patch In the Wayland backend, any window set as fullscreen with the SDL_WINDOW_FULLSCREEN_DESKTOP flag that does not already have the same dimensions as the display resolution will render improperly, showing only part or none of the intended picture. The problem here is that we were ignoring the configure events sent to us by the display server. Properly resizing the surface when the window is resized, as is done in the attached patch, fixes the problem completely.