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:
parent
fb4441df73
commit
e3dd277586
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue