-
Notifications
You must be signed in to change notification settings - Fork 16.2k
fix: maximized frameless window bleeding to other monitors #25940
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
Conversation
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. |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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 .
Release Notes Persisted
|
I have automatically backported this PR to "10-x-y", please check out #25977 |
I have automatically backported this PR to "11-x-y", please check out #25978 |
I have automatically backported this PR to "8-x-y", please check out #25979 |
I have automatically backported this PR to "9-x-y", please check out #25980 |
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
npm test
passesRelease Notes
Notes: Fix maximized frameless window bleeding to other monitors.