ios: fix timers

Fixes #4074.
Fixes #3816.
This commit is contained in:
Mads Marquart
2025-02-06 10:56:10 +01:00
committed by Kirill Chibisov
parent 487137b867
commit 501d9b4a44
2 changed files with 2 additions and 0 deletions

View File

@@ -48,3 +48,4 @@ changelog entry.
- On X11, fix crash with uim.
- On X11, fix modifiers for keys that were sent by the same X11 request.
- On iOS, fix high CPU usage even when using `ControlFlow::Wait`.

View File

@@ -375,6 +375,7 @@ impl AppState {
(ControlFlow::Wait, ControlFlow::Wait) => {
let start = Instant::now();
self.set_state(AppStateImpl::Waiting { waiting_handler, start });
self.waker.stop()
},
(ControlFlow::WaitUntil(old_instant), ControlFlow::WaitUntil(new_instant))
if old_instant == new_instant =>