We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CloseRequested
1 parent 9991bdd commit d2bcea4Copy full SHA for d2bcea4
anvil/src/winit.rs
@@ -234,6 +234,7 @@ pub fn run_winit() {
234
crate::shell::fixup_positions(&mut state.space, state.pointer.current_location());
235
}
236
WinitEvent::Input(event) => state.process_input_event_windowed(event, OUTPUT_NAME),
237
+ WinitEvent::CloseRequested => state.running.store(false, Ordering::SeqCst),
238
_ => (),
239
});
240
0 commit comments