fix problem with drawer window being shown prematurely

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30086 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
dpsimons 2010-04-05 15:31:48 +00:00
parent c4f8611a87
commit a6b0dc31cd
2 changed files with 6 additions and 1 deletions

View file

@ -390,7 +390,7 @@ static NSNotificationCenter *nc = nil;
NSRect frame = [self frameFromParentWindowFrameInState:[_drawer state]];
[self setFrame: frame display: YES];
}
if ([_parentWindow isKeyWindow]) // do our best to maintain proper window ordering
if ([self isVisible] && [_parentWindow isKeyWindow]) // do our best to maintain proper window ordering
{
[super orderFrontRegardless];
[_parentWindow orderFront:self];