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: don't unnecessarily copy draggable regions #21723

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Jan 9, 2020

Backport of #21704

See that PR for details.

notes: Fixed an issue that could cause frameless windows to become undraggable in some circumstances.

In some calls to `BrowserWindow::UpdateDraggableRegions` the parameter
`regions` points to object's variable `draggable_regions_` which we later
try to update with data received in the parameter. In these cases coping
is unnecessary. Additionally after this code is executed `draggable_regions_`
would be empty and as a result whole window would be undraggable.
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 9, 2020
@trop trop bot added 7-1-x backport This is a backport PR labels Jan 9, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jan 9, 2020
@zcbenz zcbenz merged commit 7b1117e into 7-1-x Jan 13, 2020
@release-clerk
Copy link

release-clerk bot commented Jan 13, 2020

Release Notes Persisted

Fixed an issue that could cause frameless windows to become undraggable in some circumstances.

@zcbenz zcbenz deleted the trop/7-1-x-bp-fix-don-t-unnecessarily-copy-draggable-regions-1578600829874 branch January 13, 2020 01:05
@Nantris
Copy link
Contributor

Nantris commented Feb 10, 2020

@zcbenz @Trop @nornagon this issue, or one a lot like it, persists
#21621 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7-1-x backport This is a backport PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants