Skip to content

fix: remove 1px frame background color from the top of frameless windows on Linux - #52062

Merged
jkleinsc merged 1 commit into
electron:mainfrom
mitchchn:fix-frameless-titlebar-background
Jun 29, 2026
Merged

jkleinsc merged 1 commit into
electron:mainfrom
mitchchn:fix-frameless-titlebar-background

Conversation

@mitchchn

@mitchchn mitchchn commented Jun 18, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Fixes #51457.

Frameless windows on Linux were still drawing the system titlebar background, which could sometimes leak through at the top edge of the frame. This was especially obvious at fractional scales when the system theme contrasted with the window's background colour.

Checklist

Release Notes

Notes: Fixed an issue on Linux where the system theme color appeared at the top edge of frameless windows.

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

Copy link
Copy Markdown
Member Author

cc: @aiddya.

@mitchchn
mitchchn force-pushed the fix-frameless-titlebar-background branch from a351d14 to c225904 Compare June 18, 2026 08:39
@YUCLing

YUCLing commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Can confirm this fixes the issue on my end! 🎉 Thanks for your debugging!

@aiddya

aiddya commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

This looks fine for now, but this is similar to the GetShadowValues() issue. The root cause here is a latent bug in FrameViewLinux, I'll fix it upstream. We can carry this workaround until then.

@mitchchn
mitchchn force-pushed the fix-frameless-titlebar-background branch from c225904 to 83667b8 Compare June 19, 2026 18:50
@nikwen nikwen added target/43-x-y PR should also be added to the "43-x-y" branch. semver/patch backwards-compatible bug fixes labels Jun 23, 2026
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jun 23, 2026
@mlaurencin mlaurencin 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. labels Jun 25, 2026
@jkleinsc
jkleinsc merged commit 29379d3 into electron:main Jun 29, 2026
85 checks passed
@release-clerk

release-clerk Bot commented Jun 29, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue on Linux where the system theme color appeared at the top edge of frameless windows.

@jkleinsc

Copy link
Copy Markdown
Member

/trop run backport

2 similar comments
@jkleinsc

Copy link
Copy Markdown
Member

/trop run backport

@jkleinsc

Copy link
Copy Markdown
Member

/trop run backport

@trop

trop Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

The backport process for this PR has been manually initiated - here we go! :D

@trop

trop Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "41-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/41-x-y PR should also be added to the "41-x-y" branch. label Jun 29, 2026
@trop

trop Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "42-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/41-x-y and removed target/42-x-y PR should also be added to the "42-x-y" branch. labels Jun 29, 2026
@trop

trop Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

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

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

trop Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@VerteDinde has manually backported this PR to "42-x-y", please check out #52978

@trop

trop Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

@VerteDinde has manually backported this PR to "41-x-y", please check out #53006

MarshallOfSound pushed a commit that referenced this pull request Aug 19, 2026
…ows on Linux (#53006)

fix: remove 1px frame background color from the top of frameless windows on Linux (#52062)

(cherry picked from commit 29379d3)

Co-authored-by: Mitchell Cohen <[email protected]>
@trop trop Bot added merged/41-x-y PR was merged to the "41-x-y" branch. and removed in-flight/41-x-y labels Aug 19, 2026
MarshallOfSound pushed a commit that referenced this pull request Aug 19, 2026
…ows on Linux (#52978)

fix: remove 1px frame background color from the top of frameless windows on Linux (#52062)

fix: remove 1px titlebar background from the top of frameless windows on Linux
(cherry picked from commit 29379d3)

Co-authored-by: Mitchell Cohen <[email protected]>
@trop trop Bot added merged/42-x-y PR was merged to the "42-x-y" branch. and removed in-flight/42-x-y labels Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

44-x-y 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. merged/43-x-y PR was merged to the "43-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

Frameless window on Wayland has a white line on top

7 participants