* Source/NSApplication.m (NSAppIcon -mouseDown:): Call unhide:

regardless of whether we're hidden or not.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23961 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-10-24 23:09:58 +00:00
parent 36e68226f8
commit 37f70188f1
2 changed files with 8 additions and 20 deletions

View file

@ -1,3 +1,8 @@
2006-10-24 Matt Rice <ratmice@yahoo.com>
* Source/NSApplication.m (NSAppIcon -mouseDown:): Call unhide:
regardless of whether we're hidden or not.
2006-10-22 Matt Rice <ratmice@yahoo.com>
* Source/NSTableView.m (-mouseDown:): Check for empty selection.

View file

@ -504,22 +504,7 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
{
if ([theEvent clickCount] >= 2)
{
/* If the app is not hidden we need to order front any visible and
possibly obscured windows. If we are active we need to order front
the key or main window again, otherwise unhide: will unhide and
activate us. Do this all in a way which will not change the stacking
order.
There are 3 possibilities:
1. app is active and has no obscured windows
2. app is active and has obscured windows
3. app is inactive.
I don't know of any way to tell 1 from 2 and do nothing.
This should ideally set aWin NSWindowBelow the key or main window
but with most windowmanagers. It doesn't seem to place the receiving
window immediately below like it should.
*/
/* if not hidden raise windows which are possibly obscured. */
if ([NSApp isHidden] == NO)
{
NSArray *windows = RETAIN(GSOrderedWindows());
@ -561,10 +546,8 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
RELEASE(windows);
}
else
{
[NSApp unhide: self];
}
[NSApp unhide: self]; // or activate or do nothing.
}
else
{