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 1258

Summary: Clicking app icon in dock doesn't un-minimize window
Product: SDL Reporter: Vern Jensen <vern>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Mac OS X 10.6   

Description Vern Jensen 2011-07-27 10:49:40 UTC
If the user clicks the orange button in a MacOS X SDL app's window to minimize that window into the dock, then switches to another program, then switches back by clicking the app's icon in the dock (not the minimized window's icon, but the app's icon), the window should un-minimize itself. This is standard MacOS X behavior in any other app when the only visible window in the app is minimized.

SDL doesn't do this, and also, SDL doesn't send any events indicating the app was brought to the front again, so the programmer has no ability to do this either.
Comment 1 Vern Jensen 2011-09-14 16:37:53 UTC
Turns out this was caused by the way I was creating my own menu bar, first calling:

mainApplication = [NSApplication sharedApplication];

This code causes the problem. Not a problem in SDL. Sorry about that.