codebytere

#48199: fix: ensure dragging works again after emitting contextmenu event

Merged
Created: Aug 28, 2025, 3:23:10 AM
Merged: Aug 29, 2025, 9:37:38 AM
4 comments
Target: main

Description of Change

Closes #48179.

Fixes an issue where dragging sometimes didn't work after the contextmenu event was emitted. This happened because WM_RBUTTONUP can be racy with the mousehandler, so the call to electron::api::WebContents::SetDisableDraggableRegions(false) didn't always happen as expected. Fix this by consolidating logic into ElectronDesktopWindowTreeHostWin::HandleMouseEvent.

Checklist

Release Notes

Notes: Fixed an issue where dragging sometimes didn't work after the contextmenu event was emitted.

Backports

36-x-y
Merged
PR Number
#48225
Merged At
Aug 29, 2025, 11:51:30 AM
Released In
Not yet
Release Date
Not yet
37-x-y
Merged
PR Number
#48226
Merged At
Aug 29, 2025, 12:13:39 PM
Released In
Not yet
Release Date
Not yet
38-x-y
Merged
PR Number
#48224
Merged At
Aug 29, 2025, 12:15:17 PM
Released In
Not yet
Release Date
Not yet

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron