Skip to content

Unified window creation#287

Open
prokopyl wants to merge 9 commits into
nextfrom
unified-window-creation
Open

Unified window creation#287
prokopyl wants to merge 9 commits into
nextfrom
unified-window-creation

Conversation

@prokopyl

@prokopyl prokopyl commented Jul 10, 2026

Copy link
Copy Markdown
Member

This PR removes the Window::open_parented and Window::open_blocking functions, in favor of a single create_window function.

Parenting is now done using the with_parent method in WindowOpenOptions.
To block the current thread until the window is closed (like open_blocking), use the new run_until_closed() method on the WindowHandle type, which consumes the window handle.

This makes parenting and blocking now two orthogonal features, allowing users to e.g. create a floating window that still doesn't block the current thread (or a parented window that does).

@prokopyl prokopyl changed the base branch from master to next July 10, 2026 17:35
@prokopyl prokopyl force-pushed the unified-window-creation branch from 56e1b38 to 893b298 Compare July 10, 2026 20:43
@prokopyl prokopyl marked this pull request as ready for review July 11, 2026 01:15
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