Skip to content

fix: fire show event when BrowserWindow shown via maximize() - #32979

Merged
jkleinsc merged 1 commit into
electron:mainfrom
dsanders11:fix-32976
Mar 9, 2022
Merged

jkleinsc merged 1 commit into
electron:mainfrom
dsanders11:fix-32976

Conversation

@dsanders11

Copy link
Copy Markdown
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 recently label Feb 18, 2022
@dsanders11
dsanders11 marked this pull request as ready for review February 18, 2022 14:25
@dsanders11

Copy link
Copy Markdown
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 recently label Feb 21, 2022
@jkleinsc
jkleinsc merged commit e589e9b into electron:main Mar 9, 2022
@release-clerk

release-clerk Bot commented Mar 9, 2022

Copy link
Copy Markdown

Release Notes Persisted

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

@trop

trop Bot commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

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