Skip to content

Add window handle lifetime - #94

Merged
prokopyl merged 1 commit into
nextfrom
window-lifetime
Aug 5, 2026
Merged

Add window handle lifetime#94
prokopyl merged 1 commit into
nextfrom
window-lifetime

Conversation

@prokopyl

@prokopyl prokopyl commented Aug 3, 2026

Copy link
Copy Markdown
Owner

This PR adds a new 'w lifetime on the Window type (from the gui extension), which represents the lifetime of the underlying window handle.

(The previously existing 'a lifetime only tracked the gui_api_type's field's lifetime.)

This change allows to track the underlying window handle lifetime, and therefore allows to implement the new RawWindowHandle APIs safely.

On the flip side, some methods to create a Window from raw native handles have been made unsafe where needed.

@prokopyl prokopyl changed the title wip Add window handle lifetime Aug 3, 2026
@prokopyl prokopyl added this to the Clack 0.2 milestone Aug 5, 2026
@prokopyl
prokopyl merged commit b9f90e4 into next Aug 5, 2026
35 checks passed
@prokopyl
prokopyl deleted the window-lifetime branch August 5, 2026 00:39
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