mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: restore original BrowserWindow.show() behavior (#42300)
This commit is contained in:
@@ -457,11 +457,7 @@ void NativeWindowMac::Show() {
|
||||
|
||||
// Panels receive key focus when shown but should not activate the app.
|
||||
if (!IsPanel()) {
|
||||
if (@available(macOS 14.0, *)) {
|
||||
[[NSApplication sharedApplication] activate];
|
||||
} else {
|
||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||
}
|
||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||
}
|
||||
[window_ makeKeyAndOrderFront:nil];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user