Minor fix for app activation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6203 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-03-07 07:23:26 +00:00
parent b7c1242cfc
commit 63c094b978
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Mar 07 06:24:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSApplication.m: ([activateignoringOtherApps]) order key
window to front when activating app.
Tue Mar 7 03:23:55 2000 Nicola Pero <n.pero@mi.flashnet.it>
Warning: the gmodel format was changed by this fix - and it is

View file

@ -766,6 +766,15 @@ static NSCell* tileCell = nil;
[self unhide: nil];
}
if ([[self keyWindow] != nil)
{
[[self keyWindow] orderFront: self];
}
else if ([[self mainWindow] != nil)
{
[[self mainWindow] orderFront: self];
}
NSDebugLog(@"activateIgnoringOtherApps end.");
[nc postNotificationName: NSApplicationDidBecomeActiveNotification