Repository navigation
refactor: replace OpaqueFrameView with ElectronFrameViewLinux - #51161
Merged
Merged
Conversation
Contributor
Author
|
Depends on #51160 |
This was referenced Apr 20, 2026
aiddya
force-pushed
the
efvl-refactor
branch
4 times, most recently
from
April 26, 2026 00:38
7f8ddf8 to
eb1ef45
Compare
Member
|
@aiddya can you rebase you PR on the latest from main? |
Contributor
Author
|
Done. |
ckerr
self-requested a review
April 29, 2026 17:12
Contributor
Author
|
Fixed the formatting issues. |
7 tasks done
4 of 7 tasks
mitchchn
reviewed
May 2, 2026
This was referenced May 2, 2026
mitchchn
approved these changes
May 6, 2026
mitchchn
left a comment
Member
There was a problem hiding this comment.
The only thing I haven't been able to test is an olderX11 environment without shadow/compositing support. But everything works well on Wayland and Xwayland on GNOME and KDE.
mitchchn
reviewed
May 6, 2026
mitchchn
reviewed
May 6, 2026
Replace OpaqueFrameView with ElectronFrameViewLinux, rebased on the new Chromium FrameViewLinux class. This orphans LinuxFrameLayout, which is now removed. ElectronDesktopWindowTreeHostLinux now invokes FrameViewLinux methods on window changes like transparency and shadows. ElectronFrameViewLayoutLinux extends FrameViewLayoutLinux to handle three modes: shadow-only, WCO, and transparent. It overrides frame geometry methods from the base class for these modes and adds a few new ones for WCO. Assisted-By: Claude Opus 4.6, Claude Code
|
Release Notes Persisted
|
Contributor
|
I have automatically backported this PR to "43-x-y", please check out #51658 |
3 tasks done
5 tasks done
5 of 7 tasks
3 of 6 tasks
adri6412
added a commit
to adri6412/osmium-sound-x86
that referenced
this pull request
Aug 20, 2026
… GTK theme A light 4px strip runs down the left edge of the panel. It is not the compositor's border: Chromium draws its own frame around the window on Linux (ElectronFrameViewLinux, rebased on Chromium's FrameViewLinux in electron/electron#51161, in every 43.x), a resize band plus a border painted in the system theme's colours — measured (221,218,214) with a (188,186,182) outline, which is Adwaita light. The same refactor is where the "consistent 10px resize bands" come from, matching the insets seen on the wire: set_window_geometry(16, 10, ...) with the shadow, 10/10 with hasShadow off. Chromium drops that frame when it knows it is fullscreen, but only then — having the compositor fullscreen the window from outside does not do it. The window is `resizable: false`, so it refuses the resize the WM's fullscreen asks of it, and all that changes is which edges of the border land on screen: a labwc window rule with ToggleFullscreen turned one visible strip into two (left and bottom). So the window asks for fullscreen itself. Only on a session that has a compositor: the X11 rollback session runs bare with no window manager, so nobody would honour the request there and the manual sizing stays the only thing that covers the panel. GTK_THEME=Adwaita:dark goes with it as the belt to that pair of braces: the frame takes its colours from the system theme, and the appliance's default is the light one. If any native chrome does show up, it shows up dark on a black UI instead of light. Not verified on the device — the fullscreen half is reasoned from the wire traces, not seen. The dark theme is what keeps a mistake cheap. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Aug 27, 2026
Closed
7 tasks done
3 of 4 tasks
4 tasks done
3 tasks done
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
Replace OpaqueFrameView with ElectronFrameViewLinux, rebased on the new Chromium FrameViewLinux class. This orphans LinuxFrameLayout, which is now removed. ElectronDesktopWindowTreeHostLinux now invokes FrameViewLinux methods on window changes like transparency and shadows.
ElectronFrameViewLayoutLinux extends FrameViewLayoutLinux to handle three modes: shadow-only, WCO, and transparent. It overrides frame geometry methods from the base class for these modes and adds a few new
ones for WCO.
As the base FrameViewLinux class respects user preferences on window controls, ElectronFrameViewLinux has been changed to match. WCO can now show user-configured buttons in either all-trailing, all-leading or a
mix of leading and trailing order.
Instead of drawing an inside resize border for frameless without shadow mode, we instead set shadow to none and let the frame border insets collapse to the resize band. This ensures consistent resize behavior across modes, which is a 10 px band all around the client/frame area. It also allows us to do neat things like runtime toggling of shadows, which has now been implemented on Linux.
Checklist
npm testpassesRelease Notes
Notes: