Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: window controls stop working when zoomed in (fix #242890) #243120

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

bpasero
Copy link
Member

@bpasero bpasero commented Mar 10, 2025

@deepak1556 looks like buggy stuff is happening if on macOS we define a height: 29 in titleBarOverlay and later call setWindowButtonPosition.

I had thought that all properties on macOS are ignored, but that does not seem to be the case, so the safest seems to be to go with the titleBarOverlay: true option?

@bpasero bpasero requested a review from deepak1556 March 10, 2025 20:09
@bpasero bpasero self-assigned this Mar 10, 2025
@bpasero bpasero enabled auto-merge (squash) March 10, 2025 20:09
@bpasero bpasero added this to the March 2025 milestone Mar 10, 2025
Copy link
Collaborator

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I was wrong, the height value does seem respected on macOS https://github.com/electron/electron/blob/eb126eecb0e259fafafe8097c1cb8dac017dd07e/shell/browser/native_window.cc#L109-L123, only the color and symbolColor are ignored.

Setting the boolean seems like the right thing to do on macOS if we want to default to system defined height.

@deepak1556
Copy link
Collaborator

I think this should also address #242870

@bpasero bpasero merged commit 9037210 into main Mar 11, 2025
8 checks passed
@bpasero bpasero deleted the ben/amazing-lungfish branch March 11, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants