Restore correct activation for out-of-bundle Mac executables
This restores old activation logic for Mac applications, while still preserving the fix for #23893 from #24003. Closes #24056. Closes #24062.
This commit is contained in:
parent
e64118658d
commit
16cca70f8f
1 changed files with 6 additions and 1 deletions
|
|
@ -109,7 +109,12 @@ void wxBell()
|
|||
}
|
||||
|
||||
if ( activate ) {
|
||||
[[NSRunningApplication currentApplication] activateWithOptions: NSApplicationActivateIgnoringOtherApps];
|
||||
if ( [NSApp activationPolicy] == NSApplicationActivationPolicyAccessory ) {
|
||||
[[NSRunningApplication currentApplication] activateWithOptions: NSApplicationActivateIgnoringOtherApps];
|
||||
}
|
||||
else {
|
||||
[NSApp activateIgnoringOtherApps: YES];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue