Skip to content

fix: WCO not working with some window configurations - #45422

Merged
codebytere merged 1 commit into
mainfrom
fix-wco-not-working-sometimes
Feb 5, 2025
Merged

codebytere merged 1 commit into
mainfrom
fix-wco-not-working-sometimes

Conversation

@codebytere

@codebytere codebytere commented Feb 3, 2025 •

Copy link
Copy Markdown
Member

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 in NativeWindow. This PR updates the WCO buttons to call the correct methods on NativeWindow instead of views::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

Release Notes

Notes: Fixed an issue where Windows Control Overlay didn't work with some window configurations.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/33-x-y PR should also be added to the "33-x-y" branch. target/34-x-y PR should also be added to the "34-x-y" branch. target/35-x-y PR should also be added to the "35-x-y" branch. labels Feb 3, 2025
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Feb 3, 2025
@codebytere
codebytere requested a review from jkleinsc February 4, 2025 08:56
@codebytere
codebytere force-pushed the fix-wco-not-working-sometimes branch from 919622e to a514b55 Compare February 4, 2025 08:58
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Feb 4, 2025
@codebytere codebytere mentioned this pull request Feb 4, 2025
3 tasks done
@codebytere
codebytere force-pushed the fix-wco-not-working-sometimes branch from a514b55 to 43516c4 Compare February 4, 2025 10:18
@codebytere
codebytere force-pushed the fix-wco-not-working-sometimes branch from 43516c4 to 4696afe Compare February 4, 2025 10:21
@codebytere
codebytere merged commit aee8ea8 into main Feb 5, 2025
@codebytere
codebytere deleted the fix-wco-not-working-sometimes branch February 5, 2025 11:48
@release-clerk

release-clerk Bot commented Feb 5, 2025

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue where Windows Control Overlay didn't work with some window configurations.

@trop

trop Bot commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "33-x-y", please check out #45476

@trop trop Bot added in-flight/33-x-y and removed target/33-x-y PR should also be added to the "33-x-y" branch. labels Feb 5, 2025
@trop

trop Bot commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "35-x-y", please check out #45477

@trop

trop Bot commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "34-x-y", please check out #45478

@trop trop Bot added in-flight/35-x-y in-flight/34-x-y and removed target/35-x-y PR should also be added to the "35-x-y" branch. target/34-x-y PR should also be added to the "34-x-y" branch. labels Feb 5, 2025
@trop trop Bot added merged/34-x-y PR was merged to the "34-x-y" branch. merged/33-x-y PR was merged to the "33-x-y" branch. merged/35-x-y PR was merged to the "35-x-y" branch. and removed in-flight/34-x-y in-flight/33-x-y in-flight/35-x-y labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/33-x-y PR was merged to the "33-x-y" branch. merged/34-x-y PR was merged to the "34-x-y" branch. merged/35-x-y PR was merged to the "35-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants