kms/surface: Don't send screencopysuccess() until sync point is reached

This commit is contained in:
Ian Douglas Scott 2025-08-19 13:05:12 -07:00 committed by Victoria Brekenfeld
parent 28e9024681
commit 10c05bc1d4
2 changed files with 40 additions and 2 deletions

View file

@ -819,8 +819,12 @@ impl SurfaceThreadState {
self.timings.presented(clock);
while let Ok(PendingImageCopyData { frame, damage, .. }) = frames.recv() {
frame.success(self.output.current_transform(), damage, clock);
while let Ok(pending_image_copy_data) = frames.recv() {
pending_image_copy_data.send_success_when_ready(
self.output.current_transform(),
&self.loop_handle,
clock,
);
}
}
}