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 4242

Summary: SDL_WINDOWEVENT_RESIZED never received under Wayland video
Product: SDL Reporter: Pascal Lacroix <pascal.lacroix>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus, sezeroz
Version: 2.0.8   
Hardware: x86   
OS: Linux   

Description Pascal Lacroix 2018-08-31 16:02:46 UTC
OS: Fedora 28

CAUSE: Window size has already been updated by the time Wayland video calls SDL_SendWindowEvent(), so that the event is never posted (returns at src/events/SDL_windowevents.c:134)

DETAILS:
Debugging showed that handle_configure_zxdg_toplevel() was called prior to handle_configure_zxdg_shell_surface().
The other function which could send the event is handle_configure_wl_shell_surface(), but it should be noted that it also updates the window size prior to calling SDL_SendWindowEvent(), resulting in the same symptom.
Comment 1 Ryan C. Gordon 2018-10-05 21:24:51 UTC
This is fixed in https://hg.libsdl.org/SDL/rev/c4d5e502c1f4, thanks!

--ryan.