Provide native window access, via "fetch_native_handle" method on window. - #2200
Merged
Merged
Conversation
dtzxporter
force-pushed
the
run-window-callback
branch
from
January 12, 2024 15:41
28aefed to
fe66406
Compare
dtzxporter
force-pushed
the
run-window-callback
branch
from
January 17, 2024 15:30
fe66406 to
347ee25
Compare
dtzxporter
marked this pull request as draft
January 17, 2024 23:46
Contributor
Author
|
Will rework this once #2191 lands. |
dtzxporter
force-pushed
the
run-window-callback
branch
from
January 19, 2024 19:36
608aa87 to
7ae7fcb
Compare
dtzxporter
marked this pull request as ready for review
January 19, 2024 19:48
dtzxporter
force-pushed
the
run-window-callback
branch
from
January 24, 2024 20:44
eaafa92 to
9a871c1
Compare
hecrj
force-pushed
the
run-window-callback
branch
from
February 7, 2024 08:47
9a871c1 to
f18a814
Compare
hecrj
enabled auto-merge
February 7, 2024 08:49
Closed
|
How does one get from a What about global protocol objects like |
Member
|
You call https://docs.rs/iced/latest/iced/widget/shader/wgpu/rwh/enum.RawWindowHandle.html#variant.Wayland |
|
I looked at that before asking here, but that variant's associated type is: I'm not sure how to operate on a |
hahnavi
pushed a commit
to hahnavi/iced
that referenced
this pull request
Sep 26, 2026
Provide native window access, via "fetch_native_handle" method on window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This should alleviate some of the concerns in: #2194 (comment) because it will force the callback to be ran in the event loop in iced, and gives us a reference to the window directly instead. While the user could mess up the iced state by making changes here, I think that anyone using this method should know what they are doing and it's an advanced use case.
Links:
#2194