fix: remove Electron BrowserWindow focus call #29126
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
This change undoes #25292.
It removes the handler that focuses the BrowserWindow upon initial load. On Mac at least, it seems that Chromium handles the focusing just fine.
CC @deepak1556
Checklist
I'll work on finishing up these tasks later but I'll upload this PR for now for review.
npm test
passesdocument.hasFocus()
can returntrue
for multiple windows being opened microsoft/vscode#122352 (comment) for what I've tested so far on the Mac.Release Notes
Notes: none.