1
0
Fork 0
forked from wry/wry

wl_surface: fix frame request timestamps

This commit is contained in:
Julian Orth 2024-09-23 11:32:14 +02:00
parent 34dc024ca7
commit 21a299b265

View file

@ -2056,7 +2056,7 @@ impl DamageMatrix {
impl VblankListener for WlSurface {
fn after_vblank(self: Rc<Self>) {
if self.visible.get() {
let now = self.client.state.now_usec();
let now = self.client.state.now_msec();
for fr in self.frame_requests.borrow_mut().drain(..) {
fr.send_done(now as _);
let _ = fr.client.remove_obj(&*fr);