Skip to content

Commit d2bcea4

Browse files
committed
anvil/winit: Handle CloseRequested
1 parent 9991bdd commit d2bcea4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

anvil/src/winit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ pub fn run_winit() {
234234
crate::shell::fixup_positions(&mut state.space, state.pointer.current_location());
235235
}
236236
WinitEvent::Input(event) => state.process_input_event_windowed(event, OUTPUT_NAME),
237+
WinitEvent::CloseRequested => state.running.store(false, Ordering::SeqCst),
237238
_ => (),
238239
});
239240

0 commit comments

Comments
 (0)