Populate host latency for kms/x11 grab (#2273)

This commit is contained in:
KuleRucket
2024-03-28 22:52:53 +01:00
committed by GitHub
parent e5ef0375f3
commit 526121d81d
2 changed files with 8 additions and 3 deletions

View File

@@ -535,6 +535,7 @@ namespace platf {
auto img = (x11_img_t *) img_out.get();
XImage *x_img { x11::GetImage(xdisplay.get(), xwindow, offset_x, offset_y, width, height, AllPlanes, ZPixmap) };
img->frame_timestamp = std::chrono::steady_clock::now();
img->width = x_img->width;
img->height = x_img->height;