Skip to content

fix: frameless window resize in MAS builds#49780

Merged
jkleinsc merged 1 commit intomainfrom
fix-drag-mas
Feb 18, 2026
Merged

fix: frameless window resize in MAS builds#49780
jkleinsc merged 1 commit intomainfrom
fix-drag-mas

Conversation

@codebytere
Copy link
Copy Markdown
Member

Description of Change

Fixes #49770

This PR adds MAS build compatibility for the resize direction check in cr_mouseDownOnFrameView.

The original code uses the private _resizeDirectionForMouseLocation: API to determine if a mouse down event is occurring in a window resize area. For MAS builds, we now approximate this behavior by checking if the mouse location is within 5 pixels of any window edge. This isn't a perfect match for what the private API does (which likely accounts for corner radii and other subtleties), but it should cover the common case of preventing window drags from interfering with resize operations.

Checklist

Release Notes

Notes: Fixed an issue where frameless windows had resize issues in Mac App Store builds.

@codebytere codebytere requested a review from a team as a code owner February 12, 2026 14:15
@codebytere codebytere added semver/patch backwards-compatible bug fixes target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. target/41-x-y PR should also be added to the "41-x-y" branch. labels Feb 12, 2026
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Feb 12, 2026
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Feb 13, 2026
Copy link
Copy Markdown
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

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

Needs rebase for patch conflicts

@jkleinsc jkleinsc merged commit f4ba25a into main Feb 18, 2026
61 checks passed
@jkleinsc jkleinsc deleted the fix-drag-mas branch February 18, 2026 15:35
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Feb 18, 2026

Release Notes Persisted

Fixed an issue where frameless windows had resize issues in Mac App Store builds.

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Feb 18, 2026

I was unable to backport this PR to "39-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot removed the target/39-x-y PR should also be added to the "39-x-y" branch. label Feb 18, 2026
@trop
Copy link
Copy Markdown
Contributor

trop bot commented Feb 18, 2026

I was unable to backport this PR to "41-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Feb 18, 2026

I was unable to backport this PR to "40-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/41-x-y needs-manual-bp/40-x-y and removed target/41-x-y PR should also be added to the "41-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. labels Feb 18, 2026
@trop
Copy link
Copy Markdown
Contributor

trop bot commented Feb 19, 2026

@samuelmaddock has manually backported this PR to "40-x-y", please check out #49856

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Feb 19, 2026

@samuelmaddock has manually backported this PR to "41-x-y", please check out #49857

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Feb 19, 2026

@samuelmaddock has manually backported this PR to "39-x-y", please check out #49861

@trop trop bot added in-flight/39-x-y merged/40-x-y PR was merged to the "40-x-y" branch. and removed needs-manual-bp/39-x-y in-flight/40-x-y labels Feb 19, 2026
codebytere added a commit that referenced this pull request Feb 19, 2026
fix: frameless window resize in MAS builds (#49780)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
@trop trop bot added merged/39-x-y PR was merged to the "39-x-y" branch. merged/41-x-y PR was merged to the "41-x-y" branch. and removed in-flight/39-x-y in-flight/41-x-y labels Feb 19, 2026
kycutler pushed a commit to kycutler/electron that referenced this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/39-x-y PR was merged to the "39-x-y" branch. merged/40-x-y PR was merged to the "40-x-y" branch. merged/41-x-y PR was merged to the "41-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mac App Store: Frameless window drags when trying to resize from bottom or right sides

2 participants