feat: Shadows and CSD for frameless windows on Wayland by trop[bot] · Pull Request #49885 · electron/electron · GitHub
Skip to content

feat: Shadows and CSD for frameless windows on Wayland#49885

Merged
jkleinsc merged 1 commit into41-x-yfrom
trop/41-x-y-bp-feat-shadows-and-csd-for-frameless-windows-on-wayland-1771548798909
Feb 25, 2026
Merged

feat: Shadows and CSD for frameless windows on Wayland#49885
jkleinsc merged 1 commit into41-x-yfrom
trop/41-x-y-bp-feat-shadows-and-csd-for-frameless-windows-on-wayland-1771548798909

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop Bot commented Feb 20, 2026

Backport of #49295

See that PR for details.

Notes: On Wayland (Linux), frameless windows now have GTK drop shadows and extended resize boundaries. To create fully frameless windows with no decorations, set hasShadow: false in the window constructor.

* fix window sizing and content sizing on Linux when CSD is in use

* fixed size constraints

* layout helper

* CSD shadows for frameless windows on Linux

* simplify min/max size calculation

* use base window size for min/max

* respect HasShadow option

* moved windows min/max size overrides

* add newline at end of file

* fix setting background color for frameless csd windows

* fix wco positioning nad sizing to match prod

* safety improvements

Co-authored-by: Mitchell Cohen <mitch.cohen@me.com>
@trop trop Bot requested a review from a team February 20, 2026 00:53
@trop trop Bot added 41-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Feb 20, 2026
@jkleinsc jkleinsc merged commit 3a2b7d3 into 41-x-y Feb 25, 2026
119 of 120 checks passed
@jkleinsc jkleinsc deleted the trop/41-x-y-bp-feat-shadows-and-csd-for-frameless-windows-on-wayland-1771548798909 branch February 25, 2026 17:53
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented Feb 25, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

41-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants