Skip to content

Add support for delaying window creation until parent is set - #303

Merged
prokopyl merged 7 commits into
nextfrom
delay-parented
Jul 28, 2026
Merged

Add support for delaying window creation until parent is set#303
prokopyl merged 7 commits into
nextfrom
delay-parented

Conversation

@prokopyl

@prokopyl prokopyl commented Jul 28, 2026

Copy link
Copy Markdown
Member

Some APIs (notably the CLAP GUI API) only provide the parent window until after the window creation completes. However, turning the underlying window from non-parented to parented can cause issues on some platforms.

This PR adds the WindowSettings::parented option, which instructs baseview to delay window creation until the first set_parent call, while still allowing to query and make changes to the window (which will be applied at window creation).

@prokopyl prokopyl changed the title Delay parented Add support for delaying window creation until parent is set Jul 28, 2026
@prokopyl
prokopyl marked this pull request as ready for review July 28, 2026 22:32
@prokopyl
prokopyl merged commit 6094a7f into next Jul 28, 2026
14 checks passed
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.

1 participant