From 617bcc76b325c6559f8002cb2753e75dbbfd0d75 Mon Sep 17 00:00:00 2001 From: Dusty DeWeese Date: Tue, 15 Mar 2022 01:00:45 -0700 Subject: [PATCH 1/2] Always send RedrawEventsCleared --- src/platform_impl/ios/app_state.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/platform_impl/ios/app_state.rs b/src/platform_impl/ios/app_state.rs index 43330b0b4d..6d1d206942 100644 --- a/src/platform_impl/ios/app_state.rs +++ b/src/platform_impl/ios/app_state.rs @@ -811,9 +811,7 @@ pub unsafe fn handle_main_events_cleared() { }) .collect(); - if !redraw_events.is_empty() { - redraw_events.push(EventWrapper::StaticEvent(Event::RedrawEventsCleared)); - } + redraw_events.push(EventWrapper::StaticEvent(Event::RedrawEventsCleared)); drop(this); handle_nonuser_events(redraw_events); From 41998432769bbb9a3ec730323a42528c14795fdc Mon Sep 17 00:00:00 2001 From: Dusty DeWeese Date: Sat, 9 Apr 2022 17:53:07 -0700 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5798fe9c5f..e4ecf43797 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ And please only add new entries to the top of this list, right below the `# Unre - On Wayland, fix polling during consecutive `EventLoop::run_return` invocations. - On Windows, fix race issue creating fullscreen windows with `WindowBuilder::with_fullscreen` - On Android, `virtual_keycode` for `KeyboardInput` events is now filled in where a suitable match is found. +- On iOS, send `RedrawEventsCleared` even if there are no redraw events, consistent with other platforms. # 0.26.1 (2022-01-05)