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: Windows 7 frame showing for frameless non-resizable windows #35365
fix: Windows 7 frame showing for frameless non-resizable windows #35365
Conversation
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.
LGTM with minor style change.
9fff3a3
to
ec51e87
Compare
This PR fails the minimum size test case on Windows. Will have to look into whether that test is relying on the WS_CAPTION style being taken off for a split second. |
ec51e87
to
fb563c7
Compare
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.
Note to self: Understand why frame change notification is required.
7fafd0a
to
02d41c5
Compare
For more context, Deepak and I also got back a response from a SWE on the Windows UI team. The brief summary is that because Chromium and Electron were toggling on and off the The SWE's response aligns with my investigations where I found out that playing around with This PR also aligns with their recommendation of making sure the windows styles are set properly in the first place. In particular, it considers how Electron sets the |
d50aa00
to
eb04728
Compare
eb04728
to
8b112ff
Compare
8b112ff
to
a13dcad
Compare
a13dcad
to
79baa37
Compare
Release Notes Persisted
|
I was unable to backport this PR to "20-x-y" cleanly; |
I was unable to backport this PR to "21-x-y" cleanly; |
I have automatically backported this PR to "22-x-y", please check out #36024 |
Description of Change
Fixes #30024.
It turns out there's some Chromium code that was removing the
WS_CAPTION
style for frameless windows, just for Electron to add it back. Removing that if statement fixed the Windows 7 frame issue for both resizable and non-resizable frameless windows.Downstream ref microsoft/vscode#158065.
CC @deepak1556
Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where frameless non-resizable windows showed a Windows 7 frame during startup.