Repository navigation
fix: draw no border around frameless windows on Linux setups without client-side shadows - #54376
Merged
Merged
Conversation
…client-side shadows On X11 window managers without a compositing manager or without _GTK_FRAME_EXTENTS support (i3, awesome, xfwm4) client-side shadows are unavailable, and the frame layout then fell back to Chromium's solid 4px resize border on three sides, which frameless windows painted in the frame color. Frameless windows already resize from an inside band, so return empty border insets in that case as before 43.
deepak1556
approved these changes
Sep 25, 2026
|
Release Notes Persisted
|
MarshallOfSound
deleted the
fix-linux-frameless-border-without-shadow
branch
September 25, 2026 16:10
This was referenced Sep 25, 2026
Merged
Merged
Contributor
|
I have automatically backported this PR to "43-x-y", please check out #54390 |
Contributor
|
I have automatically backported this PR to "44-x-y", please check out #54391 |
Contributor
|
I have automatically backported this PR to "45-x-y", please check out #54392 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Fixes #52024.
After this change frameless windows on Linux have no grey 4px band on WMs without client-side shadow support (no compositing manager, or no
_GTK_FRAME_EXTENTS: i3, awesome, xfwm4), as before 43.When client-side shadows are unavailable,
FrameViewLayoutLinux::GetRestoredFrameBorderInsets()falls back to Chromium's solid 4px resize border on the left, right and bottom, and since 43 frameless windows go through that layout and painted the border in the frame color;_GTK_FRAME_EXTENTSread4,4,0,4as in the report.ElectronFrameViewLayoutLinux::GetRestoredFrameBorderInsets()now returns empty insets in that case, as it already does for translucent windows; resizing keeps working through the inside band inResizingBorderHitTest, which is used exactly when the insets are empty. Verified under Xvfb (no compositing manager): a 400x300frame: falsewindow was a 408x304 X window with those extents on main and is 400x300 with none here; transparent, WCO and framed windows are unchanged. No spec, since only the X geometry differs.Checklist
Release Notes
Notes: Fixed a grey border around frameless windows on Linux WMs without compositing.