Allow fetching the raw window handle of a window by it's iced::window::Id.#2194
Allow fetching the raw window handle of a window by it's iced::window::Id.#2194dtzxporter wants to merge 1 commit intoiced-rs:masterfrom
iced::window::Id.#2194Conversation
edf09d7 to
5526acd
Compare
5526acd to
1e28100
Compare
|
The ecosystem is moving to Not sure how this would work. It could still provide a raw handle, but that would make it unsafe to work with. Or it could return (#2191 has a WIP update to the latest raw-window-handle with the safe handle types.) |
|
Because winit is unsound anyway, either method is technically introducing unsound code, and if winit rectifies the issue you would be unlikely to be able to Arc the window since the lifetime is tied to the windows and windows outlive the event loop. I'm open to any approach FWIW that allows me to get the native handle from the window and manipulate it as it's necessary to fill a lot of issues with winit in general. |
|
#2200 has an approach that will be easily upgraded once other dependencies become stable. |
|
Closing because wgpu 0.19 is out and it will be easier to use RWH 0.6. |
This is useful for specific platform code that the user may want to integrate with iced.