Commit e3dd2775 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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.
parent fb4441df
......@@ -1340,7 +1340,11 @@ static inline NSUInteger adjusted_modifiers_for_option_behavior(NSUInteger modif
- (void) makeFocused:(BOOL)activate
{
[self orderBelow:nil orAbove:nil activate:activate];
if (activate)
{
[[WineApplicationController sharedController] transformProcessToForeground];
[NSApp activateIgnoringOtherApps:YES];
}
causing_becomeKeyWindow = self;
[self makeKeyWindow];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment