8000 fix: maximized frameless window bleeding to other monitors by zcbenz · Pull Request #25940 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: maximized frameless window bleeding to other monitors #25940

New issue 8000

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

Merged
merged 1 commit into from
Oct 15, 2020

Conversation

zcbenz
Copy link
Contributor
@zcbenz zcbenz commented Oct 14, 2020

Description of Change

This is a followup to #25052, to fix a bug on Windows that, maximized frameless window would have its edge bleeding to other monitors.

The previous fix did not work with multiple monitors with different DIPs, this PR should be able to fix that.

Note that this bug causes some maximized apps to consume much more GPU resources, and this PR is needed by old branches to fix the performance issue.

Fixes #25649

Checklist

Release Notes

Notes: Fix maximized frameless window bleeding to other monitors.

@zcbenz zcbenz requested a review from deepak1556 October 14, 2020 11:59
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Oct 14, 2020
insets->Set(0, frame_thickness, frame_thickness, frame_thickness);
}
// The insets would be eventually passed to WM_NCCALCSIZE, which takes
// the metrics under the DPI of _main_ monitor instead of current moniotr.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

surprising find, should this be reported to upstream ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only seems to be a problem for maximized frameless window, which Chrome only uses for deprecated Chrome Apps APIs. I can't find other way to reproduce it in Chrome .

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Oct 15, 2020
@deepak1556 deepak1556 merged commit 20c6677 into master Oct 15, 2020
@release-clerk
Copy link
release-clerk bot commented Oct 15, 2020

Release Notes Persisted

Fix maximized frameless window bleeding to other monitors.

@trop
Copy link
Contributor
trop bot commented Oct 15, 2020

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

@trop
Copy link
Contributor
trop bot commented Oct 15, 2020

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

@trop
Copy link
Contributor
trop bot commented Oct 15, 2020

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

@trop
Copy link
Contributor
trop bot commented Oct 15, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mouse events in 'drag' and 'no-drag' unaligned after 10.1.1
3 participants
0