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: do not render inactive titlebar as active on Windows #24847
Conversation
// active, which is different from most other win32 apps. We prevent this | ||
// behavior by overriding the WM_NCACTIVATE message to default behavior. | ||
// See also https://github.com/electron/electron/issues/24647. | ||
*result = |
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.
Can't we instead override HWNDMessageHandlerDelegate::ShouldPaintAsActive() to false
which would still resort to the default behavior because of paint_as_active || active ?
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 is a good idea 👍 , I have update the PR.
6033754
to
89f9d74
Compare
Failures are previously known and unrelated - merging. |
Release Notes Persisted
|
I have automatically backported this PR to "9-x-y", please check out #24873 |
I have automatically backported this PR to "10-x-y", please check out #24874 |
I have automatically backported this PR to "8-x-y", please check out #24875 |
Description of Change
Chromium renders titlebar as active as long as there is any views window active, even when current window is not active, which is different from most other win32 apps. We prevent this behavior by overriding the
WM_NCACTIVATE
message to default behavior.Close #24647.
Checklist
npm test
passesRelease Notes
Notes: Fix inactive windows having active titlebar on Windows