Skip to content

Commit

Permalink
Populate timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
KuleRucket authored and ReenigneArcher committed Mar 28, 2024
1 parent 5f22db9 commit 5061db2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/linux/x11grab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Check warning on line 538 in src/platform/linux/x11grab.cpp

View check run for this annotation

Codecov / codecov/patch

src/platform/linux/x11grab.cpp#L538

Added line #L538 was not covered by tests

img->width = x_img->width;
img->height = x_img->height;
Expand Down

0 comments on commit 5061db2

Please sign in to comment.