Skip to content

fix: make windows without rounded corners closable - #32597

Merged
jkleinsc merged 1 commit into
mainfrom
close-window-without-title
Jan 25, 2022
Merged

jkleinsc merged 1 commit into
mainfrom
close-window-without-title

Conversation

@zcbenz

@zcbenz zcbenz commented Jan 24, 2022

Copy link
Copy Markdown
Contributor

Description of Change

Close #28686.

By default "Close Window" is always disabled when window has no title, this PR makes it possible to close such windows. This fixes the problem that windows with roundedCorners: false was not closable, because the option is implemented by removing window's title.

Also note that this PR removes the use of NSWindowStyleMaskFullSizeContentView style, it is actually no-op if the window has no title and we don't really need it to implement roundedCorners: false.

Release Notes

Notes: Fix windows with roundedCorners: false unable to be closed.

@zcbenz zcbenz added semver/patch backwards-compatible bug fixes target/15-x-y labels Jan 24, 2022
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jan 24, 2022
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jan 25, 2022
@jkleinsc
jkleinsc merged commit 1cf3682 into main Jan 25, 2022
@jkleinsc
jkleinsc deleted the close-window-without-title branch January 25, 2022 14:51
@release-clerk

release-clerk Bot commented Jan 25, 2022

Copy link
Copy Markdown

Release Notes Persisted

Fix windows with roundedCorners: false unable to be closed.

@trop

trop Bot commented Jan 25, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Jan 25, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Jan 25, 2022

Copy link
Copy Markdown
Contributor

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

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]: roundedCorners: false and frame: false make Electron unable to quit

3 participants