mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:40:37 +00:00
minor fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28843 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f1fc5dd78a
commit
c8916fd438
4 changed files with 76 additions and 47 deletions
|
@ -556,9 +556,9 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
|
|||
while ((aWin = [iter nextObject]))
|
||||
{
|
||||
if ([aWin isVisible] == YES && [aWin isMiniaturized] == NO
|
||||
&& aWin != [NSApp keyWindow] && aWin != [NSApp mainWindow]
|
||||
&& aWin != [self window]
|
||||
&& ([aWin styleMask] & NSMiniWindowMask) == 0)
|
||||
&& aWin != [NSApp keyWindow] && aWin != [NSApp mainWindow]
|
||||
&& aWin != [self window]
|
||||
&& ([aWin styleMask] & NSMiniWindowMask) == 0)
|
||||
{
|
||||
[aWin orderFrontRegardless];
|
||||
}
|
||||
|
@ -579,15 +579,15 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
|
|||
/* We need give input focus to some window otherwise we'll
|
||||
never get keyboard events. FIXME: doesn't work. */
|
||||
NSWindow *menu_window= [[NSApp mainMenu] window];
|
||||
NSDebugLLog(@"Focus", @"No key on activation - make menu key");
|
||||
NSDebugLLog(@"Focus",
|
||||
@"No key on activation - make menu key");
|
||||
[GSServerForWindow(menu_window) setinputfocus:
|
||||
[menu_window windowNumber]];
|
||||
[menu_window windowNumber]];
|
||||
}
|
||||
}
|
||||
|
||||
RELEASE(windows);
|
||||
}
|
||||
|
||||
[NSApp unhide: self]; // or activate or do nothing.
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue