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:
Doug Simons 2010-04-05 15:31:48 +00:00
parent 15f5fd6767
commit b502d7bd31
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-04-05 Doug Simons <doug.simons@testplant.com>
* Source/NSDrawer.m: Fix problem with drawer window being shown
prematurely.
2010-04-04 German Arias <german@xelalug.org>
* Panels/Spanish.lproj/GSPageLayout.gorm: Translations

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];