app: ensure Window.Invalidate redraws after delivering events

Events such as system.CommandEvent may result in Invalidate being
called. Ensure animation state is properly updated.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-02-28 16:32:27 +01:00
parent aaf457d6e1
commit f711e7eaa8
+1
View File
@@ -630,6 +630,7 @@ func (w *Window) waitAck(d driver) {
case <-w.immediateRedraws:
// Invalidate was called during frame processing.
w.setNextFrame(time.Time{})
w.updateAnimation(d)
}
}
}