Skip to content

fix: remove insets on fullscreen windows on Windows - #51287

Merged
ckerr merged 1 commit into
electron:mainfrom
mitchchn:mitch/fix-full-screen-insets-windows
Apr 26, 2026
Merged

ckerr merged 1 commit into
electron:mainfrom
mitchchn:mitch/fix-full-screen-insets-windows

Conversation

@mitchchn

@mitchchn mitchchn commented Apr 23, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Fixes #51278, fixes #51240.

Fullscreen windows should never have insets but were missing a bailout condition in #50706. I did not notice this before because the insets are opaque when fullscreen, which looks fine with a white background. I added tests so it won't come down to eyeballing it in the future.

Needs to be in 41.x and 42.x.

Checklist

Release Notes

Notes: Fixed a regression where frameless fullscreen windows had white borders on Windows.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Apr 23, 2026
@mitchchn

Copy link
Copy Markdown
Member Author

/request-review @ckerr

@electron-issue-triage
electron-issue-triage Bot requested a review from ckerr April 26, 2026 14:03
@ckerr ckerr added the semver/patch backwards-compatible bug fixes label Apr 26, 2026
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Apr 26, 2026

@ckerr ckerr left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mitchchn LGTM, thanks for the quick fix

@ckerr ckerr added target/41-x-y PR should also be added to the "41-x-y" branch. target/42-x-y PR should also be added to the "42-x-y" branch. component/fullscreen labels Apr 26, 2026
@ckerr
ckerr merged commit ccaab43 into electron:main Apr 26, 2026
84 checks passed
@release-clerk

release-clerk Bot commented Apr 26, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed a regression where frameless fullscreen windows had white borders on Windows.

@trop

trop Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

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

@trop trop Bot added in-flight/42-x-y and removed target/42-x-y PR should also be added to the "42-x-y" branch. labels Apr 26, 2026
@trop

trop Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/fullscreen merged/41-x-y PR was merged to the "41-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

2 participants