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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trafficLightPosition not respected with titleBarStyle "customButtonsOnHover"

1 participant