We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproducible since 30.0.0
macOS
Sonoma 14.4.1
arm64 (including Apple Silicon)
29.3.3
Calling show() on a BrowserWindow instance should foreground and focus the window.
show()
BrowserWindow
showInactive()
https://gist.github.com/jz-notion/20accc61a10f011eef7b2255a5b90c36
I noticed the implementation difference below for macOS 14.0 onwards. According to Apple docs, activate does not guarantee app activation.
activate
Use this method to request app activation; calling this method doesn’t guarantee app activation.
electron/shell/browser/native_window_mac.mm
Lines 473 to 476 in 4c27b0c
This topic was discussed during the change to using activate instead of activateIgnoringOtherApps: #40307 (comment)
activateIgnoringOtherApps
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Preflight Checklist
Electron Version
Reproducible since 30.0.0
What operating system are you using?
macOS
Operating System Version
Sonoma 14.4.1
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
29.3.3
Expected Behavior
Calling
show()
on aBrowserWindow
instance should foreground and focus the window.Actual Behavior
show()
appears to be inconsistent in whether or not it foregrounds the window. Sometimes it works, sometimes it doesn't.showInactive()
appears to be consistent in foregrounding the window. (It just doesn't focus the window, which is expected.)Testcase Gist URL
https://gist.github.com/jz-notion/20accc61a10f011eef7b2255a5b90c36
Additional Information
I noticed the implementation difference below for macOS 14.0 onwards. According to Apple docs,
activate
does not guarantee app activation.electron/shell/browser/native_window_mac.mm
Lines 473 to 476 in 4c27b0c
This topic was discussed during the change to using
activate
instead ofactivateIgnoringOtherApps
: #40307 (comment)The text was updated successfully, but these errors were encountered: