mirror of
https://github.com/reactos/wine.git
synced 2025-02-17 19:39:00 +00:00
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 @@ 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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user