rust-windowing / winit

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

Move `Fullscreen` enum into platforms #3901

Open madsmtm opened 2 months ago

madsmtm commented 2 months ago

This is a bit of duplication, but needed if we intend to split the backends into separate crates, since we need to convert between the root crate's VideoModeHandle and MonitorHandles, and the platform's types.

kchibisov commented 2 months ago

since we need to convert between the root crate's VideoModeHandle and MonitorHandles, and the platform's types.

We don't actually want to convert though, we want to use the exact same thing on the top type as well, like for Window right now, we don't have any conversion.