Skip to content

fix: edge resizing of frameless windows on Linux/Wayland - #51993

Closed
codebytere wants to merge 1 commit into
42-x-yfrom
42-wayland-resize
Closed

codebytere wants to merge 1 commit into
42-x-yfrom
42-wayland-resize

Conversation

@codebytere

Copy link
Copy Markdown
Member

Manual backport of #51992.

See that PR for details.

Notes: Fixed an issue where resizing didn't work on Wayland in some circumstances.

@codebytere codebytere added backport This is a backport PR 42-x-y labels Jun 15, 2026
@trop trop Bot added the semver/patch backwards-compatible bug fixes label Jun 15, 2026
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.

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Marking as changes requested until #51992 is approved and merged.

@codebytere codebytere closed this Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants