Repository navigation
fix: edge resizing of frameless windows on Linux/Wayland - #51993
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
VerteDinde
approved these changes
Jun 15, 2026
codebytere
force-pushed
the
42-wayland-resize
branch
from
June 15, 2026 05:34
dfc2398 to
dda68ce
Compare
Frameless (and WCO) windows could not be interactively resized by dragging their edges under Wayland even though FrameViewLinux provides a CSD resize band: * the frame view's supports_client_frame_shadow_ flag was only set once in OnWidgetInitDone(); when stale/false it zeroes both the resize band and the decoration insets reported via CalculateInsetsInDIP(), so the surface is never extended and no band exists. Re-evaluate it on every UpdateFrameHints(), matching BrowserDesktopWindowTreeHostLinux. * ElectronFrameViewLinux never overrode TargetForRect(), so a press that hit-tests to a resize component was targeted at the client (web contents) view that covers the same pixels and the resize loop never started. FramelessView and WinFrameView already do this.
codebytere
force-pushed
the
42-wayland-resize
branch
from
June 15, 2026 17:45
dda68ce to
47a7fb9
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.