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 - SDL_WINDOWEVENT_RESIZED never received under Wayland video
Summary: SDL_WINDOWEVENT_RESIZED never received under Wayland video
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.8
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-31 16:02 UTC by Pascal Lacroix
Modified: 2018-10-05 21:24 UTC (History)
2 users (show)

See Also:


Attachments

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