Skip to content
New issue

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

fix: focus window when showing via maximize on macOS #34465

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dsanders11
Copy link
Member

Description of Change

Other platforms focus an unshown window when maximizing it causes it to become visible, and seem to have for a long time. This PR updates macOS to match the other platform behavior and corrects the documentation. See comments on #32949 for more detailed discussion.

Should the docs change be bumped out to a different PR? It gets a bit hidden in here, which isn't ideal.

Checklist

Release Notes

Notes: Fixed focus on macOS when calling BrowserWindow.maximize for not shown windows.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 7, 2022
@bpasero
Copy link
Contributor

bpasero commented Jun 7, 2022

Cool!

@dsanders11
Copy link
Member Author

@bpasero, still in draft mode, looks like there's a test failure on Windows I need to look into to better understand. 🙂 But will hopefully flip it to ready soon.

@bpasero
Copy link
Contributor

bpasero commented Jun 8, 2022

No worries, I have just pushed a change for VSCode insiders to always call show unconditionally when initially the window is hidden. But happy to try out when this change lands.

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 14, 2022
@dsanders11 dsanders11 force-pushed the macos-browserwindow-maximize-fix branch 2 times, most recently from f8a9465 to 8bb18bd Compare June 25, 2022 04:51
@dsanders11 dsanders11 force-pushed the macos-browserwindow-maximize-fix branch from 5aeaca7 to 1151652 Compare June 26, 2022 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants