Skip to content

fix: ignore draggable regions in hidden WebContentsView#51247

Merged
ckerr merged 1 commit into40-x-yfrom
trop/40-x-y-bp-fix-ignore-draggable-regions-in-hidden-webcontentsview--1776854031333
Apr 22, 2026
Merged

fix: ignore draggable regions in hidden WebContentsView#51247
ckerr merged 1 commit into40-x-yfrom
trop/40-x-y-bp-fix-ignore-draggable-regions-in-hidden-webcontentsview--1776854031333

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop Bot commented Apr 22, 2026

Backport of #51200

See that PR for details.

Notes: Fixed an issue where app-region: drag inside a hidden WebContentsView would still drag the parent window on Windows.

Hidden child WebContentsViews were still contributing their draggable
regions to the parent window's non-client hit test, so clicks in the
area where a hidden view's draggable element would render still dragged
the window. Early-return HTNOWHERE when the view is not visible.

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
@trop trop Bot requested a review from codebytere April 22, 2026 10:34
@trop trop Bot added 40-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Apr 22, 2026
@ckerr ckerr merged commit 27c87fe into 40-x-y Apr 22, 2026
117 of 118 checks passed
@ckerr ckerr deleted the trop/40-x-y-bp-fix-ignore-draggable-regions-in-hidden-webcontentsview--1776854031333 branch April 22, 2026 15:35
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented Apr 22, 2026

Release Notes Persisted

Fixed an issue where app-region: drag inside a hidden WebContentsView would still drag the parent window on Windows.

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

Labels

40-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.

2 participants