Repository navigation
fix: WCO not working with some window configurations - #45422
Merged
Merged
Conversation
codebytere
force-pushed
the
fix-wco-not-working-sometimes
branch
from
February 4, 2025 08:58
919622e to
a514b55
Compare
3 tasks done
codebytere
force-pushed
the
fix-wco-not-working-sometimes
branch
from
February 4, 2025 10:18
a514b55 to
43516c4
Compare
codebytere
force-pushed
the
fix-wco-not-working-sometimes
branch
from
February 4, 2025 10:21
43516c4 to
4696afe
Compare
mlaurencin
approved these changes
Feb 4, 2025
|
Release Notes Persisted
|
This was referenced Feb 5, 2025
Contributor
|
I have automatically backported this PR to "33-x-y", please check out #45476 |
Contributor
|
I have automatically backported this PR to "35-x-y", please check out #45477 |
Contributor
|
I have automatically backported this PR to "34-x-y", please check out #45478 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Fixes an issue where Windows Control Overlay didn't work with some window configurations, specifically transparent windows on Windows. For example, the maximize button didn't work on transparent windows at all. This was happening because WCO buttons always called the related methods on
views::Widget, but our more complex window configurations have extra handling inNativeWindow. This PR updates the WCO buttons to call the correct methods onNativeWindowinstead ofviews::Widget.This is a prerequisite to some other Mica-related fixes I'll have up soon, which are partially broken because they now incorporate transparency.
Checklist
npm testpassesRelease Notes
Notes: Fixed an issue where Windows Control Overlay didn't work with some window configurations.