Change the Arrange in Front command to order only the application's

non-miniaturized windows front and not deminiaturize any miniaturized
windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31103 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-08-09 21:03:20 +00:00
parent cae1d262cf
commit b2311f4138
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-08-09 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSApplication.m (-arrangeInFront:): Only order
non-miniaturized windows front.
2010-08-09 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSTextView.m (-draggingEntered:, -draggingUpdated): Fix

View file

@ -2515,7 +2515,7 @@ image.</p><p>See Also: -applicationIconImage</p>
}
/**
* Arranges all app's windows in front by successively calling
* Arranges all non-miniaturized app's windows in front by successively calling
* [NSWindow-orderFront:] on each window in the app's Windows menu.
*/
- (void) arrangeInFront: (id)sender
@ -2535,7 +2535,8 @@ image.</p><p>See Also: -applicationIconImage</p>
{
id win = [(NSMenuItem*)[itemArray objectAtIndex: i] target];
if ([win isKindOfClass: [NSWindow class]])
if ([win isKindOfClass: [NSWindow class]] &&
[win isVisible] && ![win isMiniaturized])
{
[win orderFront: sender];
}