winemac: Don't change window order for SetFocus().

This fixes a problem where some apps move their window to the front after
the user switches away to another app.  OS X prevents the background app
from actually coming in front of the active app's front window, but the
window gets ordered in second place, possibly obscuring other windows of the
active app.
This commit is contained in:
Ken Thomases 2013-12-11 12:50:17 -06:00 committed by Alexandre Julliard
parent fb4441df73
commit e3dd277586
1 changed files with 5 additions and 1 deletions

View File

@ -1340,7 +1340,11 @@ - (void) setLiveResizeDisplayTimer:(NSTimer*)newTimer
- (void) makeFocused:(BOOL)activate - (void) makeFocused:(BOOL)activate
{ {
[self orderBelow:nil orAbove:nil activate:activate]; if (activate)
{
[[WineApplicationController sharedController] transformProcessToForeground];
[NSApp activateIgnoringOtherApps:YES];
}
causing_becomeKeyWindow = self; causing_becomeKeyWindow = self;
[self makeKeyWindow]; [self makeKeyWindow];