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 481

Summary: SDL_VIDEORESIZE event is not sent to restore a window after a maximize
Product: SDL Reporter: manutoo <manu.toogame>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: manu.n02
Version: 1.2.12Keywords: target-1.2.14
Hardware: PowerPC   
OS: Mac OS X (All)   
URL: http://www.managames.com

Description manutoo 2007-08-20 06:00:24 UTC
Hello,

I can click 1 time on the "+" icon to maximize the window, but after, when I click on it again to restore the original window size, nothing happens.
It's working fine on Windows.
Comment 1 Sam Lantinga 2007-12-29 12:03:51 UTC
I'm not seeing this behavior, testing with testwm on Mac OS X 10.5
Can you reproduce the problem with testwm?
Comment 2 manutoo 2008-01-16 20:59:22 UTC
Hello,

I just checked testwm and it's working fine.
I quickly checked my code, and I didn't see what could be much different from testwm, except that I'm in OpenGL mode. So maybe that's reason ...
Comment 3 Ryan C. Gordon 2009-09-13 16:33:38 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 4 Sam Lantinga 2009-09-21 00:51:14 UTC
That's really weird.  I'm getting the same behavior.  testwm works fine, testgl doesn't!
Comment 5 manutoo 2009-09-21 01:15:00 UTC
I think I got why he doesn't work with OpenGL : when in OpenGL mode, it's required to do a new complete SetVideoMode() on a window resize, which might also make SDL forgets what was the initial window size, thus the "+" icon just wants to set the window size to current size.
Comment 6 Sam Lantinga 2009-09-26 04:49:41 UTC
We're going to punt on this for SDL 1.2.  Please let me know if you run into similar issues with SDL 1.3.