Skip to content

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Jun 5, 2025

Simplify creation of Context in examples by constructing it before running the event loop with the new-ish EventLoop::owned_display_handle.

This PR also makes Context Clone when the inner display handle is, to allow more easily passing it around.

@madsmtm madsmtm added the enhancement New feature or request label Jun 5, 2025
@madsmtm madsmtm force-pushed the madsmtm/context-easier branch from e2d94d0 to b97e10e Compare June 5, 2025 13:58
@madsmtm madsmtm force-pushed the madsmtm/context-easier branch from b97e10e to 831973c Compare August 12, 2025 22:38
@madsmtm madsmtm merged commit 0f29a68 into master Aug 12, 2025
38 checks passed
@madsmtm madsmtm deleted the madsmtm/context-easier branch August 12, 2025 22:45
@MarijnS95
Copy link
Member

Maybe I wish this PR was split (or at least rebase-merged) in two pieces: it was a bit unclear to figure out that Context was already correctly taking HasDisplayHandle (i.e. this didn't contain new changes to allow that) with the samples simply lagging behind (perhaps because there was not previously a way to store an owned provider of that, i.e. EventLoop::owned_display_handle() that you linked?), apart from simply deriving some clones 😅

@madsmtm
Copy link
Member Author

madsmtm commented Aug 13, 2025

Yeah, sorry about that. I just kinda merged it because it hadn't gotten any comments for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants