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 1441

Summary: SDL_RestoreWindow() fails to restore maximized window
Product: SDL Reporter: Charles Huber <genpfault>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.0Keywords: target-2.0.0
Hardware: x86_64   
OS: Linux   
Attachments: Simple demonstration program to toggle maximization state
"fix" SDL_RestoreWindow()

Description Charles Huber 2012-03-04 20:41:29 UTC
Created attachment 834 [details]
Simple demonstration program to toggle maximization state

Running the attached program and pressing "f" maximizes the window (via SDL_MaximizeWindow()) as expected.  Pressing "f" again fails to restore the window (via SDL_RestoreWindow()), as if it had not been called.

Debian Wheezy, amd64.

testver output:
Compiled with SDL 2.0 or newer
Compiled version: 2.0.0.6303 (hg-6303:6bb657898f55)
Linked version: 2.0.0.6303 (hg-6303:6bb657898f55)
Comment 1 Charles Huber 2012-03-04 20:49:28 UTC
Created attachment 835 [details]
"fix" SDL_RestoreWindow()

This seems to fix SDL_RestoreWindow() for me but I'm not sure how it affects non-X11 platforms.
Comment 2 Ryan C. Gordon 2013-07-12 22:15:31 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 2.

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 3 Ryan C. Gordon 2013-08-02 23:49:14 UTC
Taking a look at this.

--ryan.
Comment 4 Ryan C. Gordon 2013-08-03 02:23:14 UTC
This should be fixed now in http://hg.libsdl.org/SDL/rev/b14d00c30095.

Thanks!

--ryan.