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 - SDL_RestoreWindow() fails to restore maximized window
Summary: SDL_RestoreWindow() fails to restore maximized window
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.0
Depends on:
Blocks:
 
Reported: 2012-03-04 20:41 UTC by Charles Huber
Modified: 2013-08-03 02:23 UTC (History)
1 user (show)

See Also:


Attachments
Simple demonstration program to toggle maximization state (1.82 KB, text/x-c++src)
2012-03-04 20:41 UTC, Charles Huber
Details
"fix" SDL_RestoreWindow() (718 bytes, patch)
2012-03-04 20:49 UTC, Charles Huber
Details | Diff

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