Skip to content

fix: release mouse buttons on focus loss on Wayland - #48752

Merged
codebytere merged 1 commit into
electron:mainfrom
mitchchn:fix-release-mouse-buttons-on-focus-loss-on-wayland
Nov 3, 2025
Merged

codebytere merged 1 commit into
electron:mainfrom
mitchchn:fix-release-mouse-buttons-on-focus-loss-on-wayland

Conversation

@mitchchn

@mitchchn mitchchn commented Nov 2, 2025 •

Copy link
Copy Markdown
Member

Description of Change

Prevents mouse flags from being stuck when right-clicking in the titlebar, or any time when focus leaves the window when the mouse is pressed. Upstream fix: https://chromium-review.googlesource.com/c/chromium/src/+/7091872.

Fixes #48656.

Checklist

Release Notes

Notes: Fixed an issue on Wayland (Linux) where right-clicking in the titlebar could break mouse interactions.

@mitchchn
mitchchn requested a review from a team as a code owner November 2, 2025 20:49
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Nov 2, 2025
@codebytere
codebytere self-requested a review November 2, 2025 20:57
@dsanders11 dsanders11 added semver/patch backwards-compatible bug fixes target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. 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. labels Nov 3, 2025

@codebytere codebytere 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.

nice!!

@trop

trop Bot commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "37-x-y", please check out #48756

@trop trop Bot added the in-flight/37-x-y label Nov 3, 2025
@trop trop Bot removed the target/37-x-y PR should also be added to the "37-x-y" branch. label Nov 3, 2025
@trop

trop Bot commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "38-x-y", please check out #48757

@trop

trop Bot commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "39-x-y", please check out #48758

@trop

trop Bot commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "40-x-y", please check out #48759

@trop trop Bot added in-flight/38-x-y in-flight/39-x-y in-flight/40-x-y merged/40-x-y PR was merged to the "40-x-y" branch. and removed target/38-x-y PR should also be added to the "38-x-y" branch. 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. in-flight/40-x-y in-flight/39-x-y labels Nov 3, 2025
@trop trop Bot added the merged/39-x-y PR was merged to the "39-x-y" branch. label Nov 4, 2025
@trop trop Bot added merged/38-x-y PR was merged to the "38-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. and removed in-flight/38-x-y in-flight/37-x-y labels Nov 4, 2025
nilayarya pushed a commit to nilayarya/electron that referenced this pull request Nov 21, 2025
nilayarya added a commit to nilayarya/electron that referenced this pull request Nov 21, 2025
nilayarya added a commit to nilayarya/electron that referenced this pull request Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/37-x-y PR was merged to the "37-x-y" branch. merged/38-x-y PR was merged to the "38-x-y" branch. 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. new-pr 🌱 PR opened recently semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Window chrome actions broken after right click in Electron 38.4.0 on Ubuntu 22

3 participants