Skip to content

Conversation

@codebytere
Copy link
Member

Description of Change

Closes #48463.

Fixes an issue where trafficLightPosition would not be correctly applied when using titleBarStyle: 'customButtonsOnHover'. On macOS 26, toggling the hidden state of the standard window buttons can
cause AppKit to re-layout the title bar container and reset its frame, which loses the custom margin adjustments.

To fix this re-apply the calculated geometry after visibility changes to keep the buttons at the specified margin
instead of snapping back to the default until the next manual resize.

Checklist

Release Notes

Notes: Fixed an issue where trafficLightPosition would not be correctly applied when using titleBarStyle: 'customButtonsOnHover' on macOS 26.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. target/39-x-y PR should also be added to the "39-x-y" branch. labels Oct 13, 2025
@electron-cation electron-cation bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Oct 13, 2025
@jkleinsc jkleinsc merged commit 89d3067 into main Oct 21, 2025
68 checks passed
@release-clerk
Copy link

release-clerk bot commented Oct 21, 2025

Release Notes Persisted

Fixed an issue where trafficLightPosition would not be correctly applied when using titleBarStyle: 'customButtonsOnHover' on macOS 26.

@trop
Copy link
Contributor

trop bot commented Oct 21, 2025

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

@trop
Copy link
Contributor

trop bot commented Oct 21, 2025

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

@trop trop bot removed the target/38-x-y PR should also be added to the "38-x-y" branch. label Oct 21, 2025
@trop
Copy link
Contributor

trop bot commented Oct 21, 2025

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

@trop trop bot added in-flight/39-x-y in-flight/37-x-y merged/39-x-y PR was merged to the "39-x-y" branch. merged/38-x-y PR was merged to the "38-x-y" branch. and removed target/39-x-y PR should also be added to the "39-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. in-flight/39-x-y in-flight/38-x-y labels Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-flight/37-x-y merged/38-x-y PR was merged to the "38-x-y" branch. merged/39-x-y PR was merged to the "39-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trafficLightPosition not respected with titleBarStyle "customButtonsOnHover"

2 participants