fix: respect the user's active app focus (#16400)
* Respect the user's active app Apple recommends not setting this to true. https://developer.apple.com/documentation/appkit/nsapplication/1428468-activateignoringotherapps?language=objc * Remove atom_bundle_mover.mm change for [NSApp activateIgnoringOtherApps:]
This commit is contained in:
parent
5e762d6a47
commit
6da939629b
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ void Browser::SetShutdownHandler(base::Callback<bool()> handler) {
|
|||
}
|
||||
|
||||
void Browser::Focus() {
|
||||
[[AtomApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||
[[AtomApplication sharedApplication] activateIgnoringOtherApps:NO];
|
||||
}
|
||||
|
||||
void Browser::Hide() {
|
||||
|
|
|
@ -521,7 +521,7 @@ void NativeWindowMac::Focus(bool focus) {
|
|||
return;
|
||||
|
||||
if (focus) {
|
||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:NO];
|
||||
[window_ makeKeyAndOrderFront:nil];
|
||||
} else {
|
||||
[window_ orderBack:nil];
|
||||
|
|
Loading…
Reference in a new issue