-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide native window access, via "fetch_native_handle" method on window. #2200
Conversation
28aefed
to
fe66406
Compare
fe66406
to
347ee25
Compare
Will rework this once #2191 lands. |
608aa87
to
7ae7fcb
Compare
eaafa92
to
9a871c1
Compare
9a871c1
to
f18a814
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
How does one get from a What about global protocol objects like |
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 |
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