On Windows the following code opens a window but the code hangs at the window.show() line.
extern crate winit;
fn main() {
let mut events_loop = winit::EventsLoop::new();
let window = winit::WindowBuilder::new().with_visibility(false).build(&events_loop).unwrap();
window.show();
events_loop.run_forever(|event| {
match event {
winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } => winit::ControlFlow::Break,
_ => winit::ControlFlow::Continue,
}
});
}
On Windows the following code opens a window but the code hangs at the window.show() line.