1
0
Fork 0
forked from wry/wry

surface: include current time in frame requests

This commit is contained in:
Julian Orth 2024-07-11 17:48:50 +02:00
parent bb9e6ba3b5
commit ae87b3ef7a
7 changed files with 12 additions and 11 deletions

View file

@ -1227,8 +1227,9 @@ impl WlSurface {
self.ext.get().after_apply_commit();
if self.visible.get() {
if self.buffer_presented.get() {
let now = self.client.state.now_msec() as _;
for fr in self.frame_requests.borrow_mut().drain(..) {
fr.send_done();
fr.send_done(now);
let _ = fr.client.remove_obj(&*fr);
}
}