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!

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