Skip to content

Update to raw-window-handle 0.6, introduce new WindowContext type#273

Merged
prokopyl merged 16 commits into
nextfrom
rwh_06
Jun 19, 2026
Merged

Update to raw-window-handle 0.6, introduce new WindowContext type#273
prokopyl merged 16 commits into
nextfrom
rwh_06

Conversation

@prokopyl

@prokopyl prokopyl commented Jun 18, 2026

Copy link
Copy Markdown
Member

This PR replaces the Window type passed to the event handler with a WindowContext type, which is a owned, cloneable handle to the window context that can be stored in the handler, instead of being passed to every event handler's method.

This allows the API to be cleaner overall, as well as to allow other APIs (window-handle, softbuffer, wgpu, etc.) to hold a handle that ensures the contexts they rely on can remain valid (only in terms of UB though, using it outside of the WindowHandler's lifetime may return errors).

@prokopyl prokopyl marked this pull request as ready for review June 19, 2026 01:37
@prokopyl prokopyl merged commit 858113b into next Jun 19, 2026
14 checks passed
@prokopyl prokopyl deleted the rwh_06 branch June 19, 2026 01:38
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