fix for activation with suppressed icon window

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28837 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-10-18 08:02:40 +00:00
parent eb5f81a21a
commit bc795fdaa1
2 changed files with 26 additions and 3 deletions

View file

@ -1727,8 +1727,8 @@ many times.
NSString *aString;
aString = [NSString stringWithFormat: @"%@ -- %@",
[_representedFilename lastPathComponent],
[_representedFilename stringByDeletingLastPathComponent]];
[_representedFilename lastPathComponent],
[_representedFilename stringByDeletingLastPathComponent]];
isFileName = [_windowTitle isEqual: aString];
[NSApp addWindowsItem: self
@ -2679,8 +2679,15 @@ resetCursorRectsForView(NSView *theView)
_f.visible = YES;
if (self == [NSApp iconWindow])
{
[NSApp unhide: self];
[self orderOut: self];
if ([NSApp isActive] == NO)
{
[NSApp activateIgnoringOtherApps: YES];
}
if ([NSApp isHidden] == YES)
{
[NSApp unhide: self];
}
}
[nc postNotificationName: NSWindowDidDeminiaturizeNotification
object: self];