mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user