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:
Shazron Abdullah 2019-02-26 09:44:38 +08:00 committed by Samuel Attard
parent 5e762d6a47
commit 6da939629b
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -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];