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: client area inset calculation when maximized for framless windows #25052
Conversation
From spy++ Before Rectangle - (-8, -8)-(2568, 1408), 2576x1416 (Maximized) After Rectangle - (-8, -8)-(2568, 1408), 2576x1416 (Maximized) |
50b3ffb
to
69a8fda
Compare
@zcbenz this is ready for review. Thanks! |
c3cc46a
to
a4aa256
Compare
a4aa256
to
0c37b7f
Compare
Release Notes Persisted
|
@deepak1556 has manually backported this PR to "10-x-y", please check out #25216 |
@deepak1556 has manually backported this PR to "11-x-y", please check out #25217 |
@deepak1556 has manually backported this PR to "9-x-y", please check out #25218 |
@deepak1556 has manually backported this PR to "8-x-y", please check out #25219 |
#25052) (#25218) * adopt per monitor scale factor * fix: client area inset calculation when maximized * address review feedback * pass correct glass insets to GetDwmFrameInsetsInPixels * remove unused code * Windows 8 and 10 use the same DWM frame calculation Co-authored-by: Cheng Zhao <zcbenz@gmail.com> Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
#25052) (#25216) * adopt per monitor scale factor * fix: client area inset calculation when maximized * address review feedback * pass correct glass insets to GetDwmFrameInsetsInPixels * remove unused code * Windows 8 and 10 use the same DWM frame calculation Co-authored-by: Cheng Zhao <zcbenz@gmail.com> Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
Description of Change
Fixes the following regressions introduced by #21164
Refs
microsoft/vscode#86260
microsoft/vscode#85310
microsoft/vscode#85592
microsoft/vscode#85655
Also fixes a side effect of this bug that caused increased usage of GPU under certain conditions which was identified by teams app.
Gist: https://gist.github.com/deepak1556/6e672eea191d3e5f50e429d312a56446
Checklist
npm test
passesRelease Notes
Notes: Fixes the following issues for frameless when maximized on Windows