Skip to content

Fix macOS frameless window initialization and titlebar toggle#759

Merged
nuttyartist merged 1 commit intomasterfrom
fix-frameless-window-init
Oct 12, 2025
Merged

Fix macOS frameless window initialization and titlebar toggle#759
nuttyartist merged 1 commit intomasterfrom
fix-frameless-window-init

Conversation

@nuttyartist
Copy link
Owner

Fix macOS frameless window initialization timing

Defer initUI() call from constructor to first showEvent to ensure native window is fully created.

@nuttyartist nuttyartist requested review from guihkx and zjeffer October 12, 2025 12:55
@nuttyartist nuttyartist self-assigned this Oct 12, 2025
Copy link
Collaborator

@guihkx guihkx left a comment

Choose a reason for hiding this comment

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

These changes only really affect macOS, and I don't have a macOS machine to test this... :P

The modified header file is also used on Windows, but it's a one line change, so it shouldn't matter anyway.

But the changes make sense to me.

Can you please squash all 4 commits into one before merging? Thanks.

Copy link
Collaborator

@zjeffer zjeffer left a comment

Choose a reason for hiding this comment

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

Also can't test it but code looks good

@nuttyartist
Copy link
Owner Author

Tested now on Windows as well and looks good. Will squash and merge.

@nuttyartist nuttyartist force-pushed the fix-frameless-window-init branch from eee2c26 to 6f4060b Compare October 12, 2025 18:29
@nuttyartist nuttyartist merged commit 43fe159 into master Oct 12, 2025
12 checks passed
@guihkx guihkx deleted the fix-frameless-window-init branch October 12, 2025 19:43
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.

3 participants