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 - Clicking app icon in dock doesn't un-minimize window
Summary: Clicking app icon in dock doesn't un-minimize window
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86 Mac OS X 10.6
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 10:49 UTC by Vern Jensen
Modified: 2011-09-14 16:37 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 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.