From a6b0dc31cd9421a38ba05bdd07addbbcfae99742 Mon Sep 17 00:00:00 2001 From: dpsimons Date: Mon, 5 Apr 2010 15:31:48 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ Source/NSDrawer.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0941f9036..0cbb5da29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-05 Doug Simons + + * Source/NSDrawer.m: Fix problem with drawer window being shown + prematurely. + 2010-04-04 German Arias * Panels/Spanish.lproj/GSPageLayout.gorm: Translations diff --git a/Source/NSDrawer.m b/Source/NSDrawer.m index 2d921bedf..2ca931b8a 100644 --- a/Source/NSDrawer.m +++ b/Source/NSDrawer.m @@ -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];