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 - Wayland: fullscreen windows not rendered properly
Summary: Wayland: fullscreen windows not rendered properly
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-26 04:39 UTC by Bryan Cain
Modified: 2014-05-10 19:51 UTC (History)
2 users (show)

See Also:


Attachments
Proposed patch (945 bytes, patch)
2014-04-26 04:39 UTC, Bryan Cain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.