use winit::{event_loop::EventLoop, window::WindowBuilder}; fn main() { simple_logger::init().unwrap(); let event_loop = EventLoop::new(); let window = WindowBuilder::new().build(&event_loop).unwrap(); dbg!(window.available_monitors().collect::>()); dbg!(window.primary_monitor()); }