mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +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:
|
case <-w.immediateRedraws:
|
||||||
// Invalidate was called during frame processing.
|
// Invalidate was called during frame processing.
|
||||||
w.setNextFrame(time.Time{})
|
w.setNextFrame(time.Time{})
|
||||||
|
w.updateAnimation(d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user