Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: draggable regions in BrowserViews are independent #31085

Merged
merged 1 commit into from Sep 30, 2021

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Sep 23, 2021

Description of Change

Closes #31068
Closes #31052.

After #26145, it was possible to make draggable regions on BrowserViews independent from those of BrowserWindows. As such, if a BrowserView with different draggable regions than the BrowserWindow it belongs to is superimposed on top of that window, the draggable regions of the BrowserView take precedence over those of the BrowserWindow. This is fixed by having each BrowseView update its own draggable regions in BrowserWindow::UpdateDraggableRegions instead of inheriting those coming in from BrowserWindow::UpdateDraggableRegions.

Tested with https://gist.github.com/0a53108546ef22e4d03e1b6dea55a79a and https://github.com/devinbinnie/electron-quick-start/tree/draggable_areas_bv_macos

Checklist

Release Notes

Notes: Fixed an issue where changes to draggable regions in a BrowserWindow incorrectly affected those in an attached BrowserView.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/13-x-y labels Sep 23, 2021
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Sep 23, 2021
@codebytere codebytere merged commit 2c10d0f into main Sep 30, 2021
@codebytere codebytere deleted the fix-browser-view-propagation branch September 30, 2021 09:41
@release-clerk
Copy link

release-clerk bot commented Sep 30, 2021

Release Notes Persisted

Fixed an issue where changes to draggable regions in a BrowserWindow incorrectly affected those in an attached BrowserView.

@trop
Copy link
Contributor

trop bot commented Sep 30, 2021

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

@trop
Copy link
Contributor

trop bot commented Sep 30, 2021

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

@trop
Copy link
Contributor

trop bot commented Sep 30, 2021

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

@trop
Copy link
Contributor

trop bot commented Sep 30, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
2 participants