fix: restore original BrowserWindow.show() behavior (#42300)
This commit is contained in:
parent
09fb892c6e
commit
22ba8b6f01
1 changed files with 1 additions and 5 deletions
|
@ -457,12 +457,8 @@ void NativeWindowMac::Show() {
|
||||||
|
|
||||||
// Panels receive key focus when shown but should not activate the app.
|
// Panels receive key focus when shown but should not activate the app.
|
||||||
if (!IsPanel()) {
|
if (!IsPanel()) {
|
||||||
if (@available(macOS 14.0, *)) {
|
|
||||||
[[NSApplication sharedApplication] activate];
|
|
||||||
} else {
|
|
||||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
[window_ makeKeyAndOrderFront:nil];
|
[window_ makeKeyAndOrderFront:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue