diff --git a/src/platform_impl/macos/app_state.rs b/src/platform_impl/macos/app_state.rs index 7e116567..be3aeb12 100644 --- a/src/platform_impl/macos/app_state.rs +++ b/src/platform_impl/macos/app_state.rs @@ -266,13 +266,11 @@ impl AppState { for event in HANDLER.take_events() { HANDLER.handle_nonuser_event(event); } + HANDLER.handle_nonuser_event(Event::MainEventsCleared); for window_id in HANDLER.should_redraw() { - HANDLER.handle_nonuser_event(Event::WindowEvent { - window_id, - event: WindowEvent::RedrawRequested, - }); + HANDLER.handle_nonuser_event(Event::RedrawRequested(window_id)); } - HANDLER.handle_nonuser_event(Event::EventsCleared); + HANDLER.handle_nonuser_event(Event::RedrawEventsCleared); HANDLER.set_in_callback(false); } if HANDLER.should_exit() {