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: fire show event when BrowserWindow shown via maximize() #32979

Merged
merged 1 commit into from Mar 9, 2022

Conversation

dsanders11
Copy link
Member

Description of Change

Fixes #32976.

This doesn't fix macOS (see #32947), only Windows and Linux, but the test will ensure that it works on macOS as well once that issue is closed.

This is somewhat of a half measure to address this particular case, instead of a holistic sweep to ensure 'show' is fired any time a BrowserWindow transitions from unshown to shown. I think that would be a good thing to do, but I don't have the bandwidth to do that at the moment (this is like, the 3rd issue in a chain of blocking issues), so this will serve as an incremental step in that direction which also adds test coverage.

Checklist

Release Notes

Notes: Fire 'show' event when a BrowserWindow is shown via maximize()

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 18, 2022
@dsanders11 dsanders11 marked this pull request as ready for review February 18, 2022 14:25
@dsanders11
Copy link
Member Author

Looks like the Windows builds unfortunately failed because they hit a 120 minute build time limit.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/16-x-y labels Feb 21, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 21, 2022
@jkleinsc jkleinsc merged commit e589e9b into electron:main Mar 9, 2022
@release-clerk
Copy link

release-clerk bot commented Mar 9, 2022

Release Notes Persisted

Fire 'show' event when a BrowserWindow is shown via maximize()

@trop
Copy link
Contributor

trop bot commented Mar 9, 2022

I have automatically backported this PR to "16-x-y", please check out #33212

@trop
Copy link
Contributor

trop bot commented Mar 9, 2022

I have automatically backported this PR to "17-x-y", please check out #33213

@trop
Copy link
Contributor

trop bot commented Mar 9, 2022

I have automatically backported this PR to "18-x-y", please check out #33214

bavulapati pushed a commit to bavulapati/electron that referenced this pull request Apr 29, 2022
@dsanders11 dsanders11 deleted the fix-32976 branch July 16, 2022 00:08
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: BrowserWindow.maximize Doesn't Fire show Event for Unshown Window
3 participants