Skip to content

macOS: Keep system buttons hidden #228

Open
3unjee wants to merge 1 commit into
stdware:mainfrom
3unjee:bunjee/ci-macOS
Open

macOS: Keep system buttons hidden #228
3unjee wants to merge 1 commit into
stdware:mainfrom
3unjee:bunjee/ci-macOS

Conversation

@3unjee
Copy link
Copy Markdown

@3unjee 3unjee commented May 14, 2026

This PR ensures that macOS system buttons stay hidden when the user sets the following:

agent->setWindowAttribute("no-system-buttons", true);

AppKit restores system button visibility automatically when switching context like full-screen or opening dialogs. So we add an observer on the button 'hidden' state to restore the proper visibility when required.

@wangwenx190 wangwenx190 requested a review from SineStriker May 14, 2026 12:29
@wangwenx190 wangwenx190 added the bug Something isn't working label May 14, 2026
@wangwenx190 wangwenx190 self-assigned this May 14, 2026
@wangwenx190
Copy link
Copy Markdown
Collaborator

Thanks!

@wangwenx190
Copy link
Copy Markdown
Collaborator

Sorry for the late reply! I've been to hospital last week and have no access to PC/network. And I have some discussions with the other main maintainer, sadly both of us have no ability to review macOS code, so we can't decide what to do with this PR. Maybe you can test this PR in more environments to make sure no regressions are introduced?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants