Patch to have visible windows loaded from main gmodel to appear

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6170 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-03-04 20:40:44 +00:00
parent 6382e105a6
commit f9c20e9cd6

View file

@ -1145,7 +1145,14 @@ void __dummy_GMAppKit_functionForLinking() {}
[self setBackgroundColor:
[unarchiver decodeObjectWithName:@"backgroundColor"]];
if ([unarchiver decodeBOOLWithName:@"isVisible"])
[self orderFront:nil];
{
/* If we are the main gmodel of the application, this code is
being executed before the app became active, so we have to
force ordering front of the window. TODO: Refine the code so
that if we are not the main gmodel then a more appropriate
[self orderFront:nil] is used.*/
[self orderFrontRegardless];
}
#if GNU_GUI_LIBRARY
[[self contentView] setNeedsDisplay:YES];