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 1508 - SDL_WINDOWEVENT_MAXIMIZED/RESTORED not issued if doubleclick on title was used
Summary: SDL_WINDOWEVENT_MAXIMIZED/RESTORED not issued if doubleclick on title was used
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86_64 Windows 7
: P1 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-27 21:36 UTC by Andreas Ertelt
Modified: 2017-08-14 14:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Ertelt 2012-05-27 21:36:33 UTC
The application will not receive the SDL_WINDOWEVENT subevents SDL_WINDOWEVENT_MAXIMIZED and SDL_WINDOWEVENT_RESTORED if the window was maximized/restored using a doubleclick on the caption/title bar. Retrieving the correct current state is then also impossible using SDL_GetWindowFlags().

This will also stop SDL_RestoreWindow() from working correctly.

However determining the correct state using the windows API querying GWL_STYLE for the window with GetWindowLong and checking if the WS_MAXIMIZE bit is set works fine.
Comment 1 Ryan C. Gordon 2013-07-12 18:52:36 UTC
(Sorry if you get a lot of copies of this email, we're touching dozens of bug reports right now.)

Tagging a bunch of bugs as target-2.0.0, Priority 1.

This means we're in the final stretch for an official SDL 2.0.0 release! These are the bugs we really want to fix before shipping if humanly possible.

That being said, we don't promise to fix them because of this tag, we just want to make sure we don't forget to deal with them before we bless a final 2.0.0 release, and generally be organized about what we're aiming to ship.

Hopefully you'll hear more about this bug soon. If you have more information (including "this got fixed at some point, nevermind"), we would love to have you come add more information to the bug report when you have a moment.

Thanks!
--ryan.
Comment 2 Andreas Ertelt 2013-08-09 13:03:48 UTC
To make this more convenient to fix: In this particular case only a WM_NCLBUTTONDBLCLK event is issued by windows with wParam being equal to HTCAPTION. In this case the appropriate SDL event depending on the window state should be generated.