mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
e7a8efcfa0
* macOS: Monitor list methods on Window * X11+Wayland: Monitor list methods on Window * Windows: Monitor list methods on Window * iOS: Monitor list methods on Window * Android: Monitor list methods on Window * Emscripten: Monitor list methods on Window * Fixed Wayland implementation
8 lines
258 B
Rust
8 lines
258 B
Rust
extern crate winit;
|
|
|
|
fn main() {
|
|
let event_loop = winit::EventsLoop::new();
|
|
let window = winit::WindowBuilder::new().build(&event_loop).unwrap();
|
|
println!("{:#?}\nPrimary: {:#?}", window.get_available_monitors(), window.get_primary_monitor());
|
|
}
|