Repository navigation
fix: edge resizing of frameless windows on Linux/Wayland - #51994
Closed
codebytere wants to merge 1 commit into
Closed
codebytere wants to merge 1 commit into
codebytere wants to merge 1 commit into
Conversation
5 tasks done
codebytere
force-pushed
the
41-wayland-resize
branch
from
June 15, 2026 20:38
b91a097 to
b8b65bf
Compare
ElectronFrameViewLinux sits on views::FrameViewLinux, not FramelessView, so it lost two things FramelessView provides: a TargetForRect that keeps resize-border events on the frame view, and the kResizeInsideBoundsSize inside-edge hit band (NativeWindow::NonClientHitTest only re-adds that when the frame view is a FramelessView). FrameViewLinux's own resize hit-test only covers GetFrameBorderInsets(), which on Wayland is the shadow-only outer margin — and that band is zero anyway when supports_client_frame_shadow_ stays cached at the value read before the platform window existed. * electron_desktop_window_tree_host_linux: refresh SetSupportsClientFrameShadow() in UpdateFrameHints(), same as BrowserDesktopWindowTreeHostLinux, so the layout doesn't keep a stale false from widget-init time. * ElectronFrameViewLinux::NonClientHitTest: when the base class says HTCLIENT, re-test with GetFrameBorderInsets() + kResizeInsideBoundsSize so there's a 5px resize band just inside the visible edge. * ElectronFrameViewLinux::TargetForRect: return `this` for the eight resize HT components so the overlapping client view doesn't swallow the press; scoped to resize codes only so WCO caption-button clicks still reach the buttons.
codebytere
force-pushed
the
41-wayland-resize
branch
from
June 15, 2026 20:38
b8b65bf to
1b984a3
Compare
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.
Manual backport of #51992.
See that PR for details.
Notes: Fixed an issue where resizing didn't work on Wayland in some circumstances.