We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2512

Summary: Wayland: fullscreen windows not rendered properly
Product: SDL Reporter: Bryan Cain <bryancain3>
Component: videoAssignee: 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

Description Bryan Cain 2014-04-26 04:39:59 UTC
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.
Comment 1 Gabriel Jacobo 2014-05-10 19:51:38 UTC
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.