fix: titlebar incorrectly displayed on frameless windows#40749
Conversation
|
Good job, but I noticed two things (regarding frameless window):
|
I see, but both issues seem to also be present in the latest stable, right? I think there should be a separate PR for them, since this one is focused on different problems. |
|
🥹Is there any blocking point for this PR? When can we expect it to be fixed? It's really important to me. Thanks |
There was a problem hiding this comment.
Well done! Thank you so much for investigating and fixing this 😊
I have built and manually tested this change and can confirm it works. ✅
I have one small change to request 😅 but after that this should be good to merge. I'll also make sure the backports for this PR land swiftly after.
|
I recently came across this pull request and noticed that it contains the exact fix I need for a bug that's been a bit of a roadblock for me. Is there any chance it could be reviewed and merged soon? It's important to me. thanks~ |
clavin
left a comment
There was a problem hiding this comment.
I went and pushed the change I described to your branch—I hope that's alright—so that we can get this fix merged asap 😄
|
Release Notes Persisted
|
|
I was unable to backport this PR to "27-x-y" cleanly; |
|
I was unable to backport this PR to "28-x-y" cleanly; |
|
I have automatically backported this PR to "29-x-y", please check out #40862 |
Manual backport of #40749 Co-authored-by: Bruno Henrique da Silva <bruno.d@miro.com>
Manual backport of #40749 Co-authored-by: Bruno Henrique da Silva <bruno.d@miro.com>

Description of Change
Fixes #39959.
transparent: truesettingA patch was added to fix Mica backgrounds on frameless windows, but it caused a side-effect in which a title bar gets displayed on frameless transparent windows.
This happens because, after the patch,
WM_NCACTIVATEwould be dispatched toDefWindowProcfor frameless transparent windows. While this is necessary to make Mica work on these windows, it would cause an incorrect title bar to also be displayed.To fix this, we are setting -1 as the lParam of
DefWindowProc, which seems to prevent the non-client area from being displayed on window activation/deactivation:Checklist
npm testpassesRelease Notes
Notes: fix incorrect title bar shown on frameless transparent windows