rust-windowing / winit

Window handling library in pure Rust
https://docs.rs/winit/
Apache License 2.0
4.88k stars 913 forks source link

Merge all `WindowId` into a single type in the core crate #3902

Closed madsmtm closed 1 month ago

madsmtm commented 2 months ago

WindowId is a window identifier, and as such doesn't store anything (unlike a handle). So we can safely make only be defined once, in the core crate.

There are a few backends where we still use into_raw internally; I consider these patterns discouraged, we should not be passing around important state in the window id.

Builds upon #3864.

kchibisov commented 2 months ago

Linked PR got merged, so this should be unblocked now.