Skip to content

Commit

Permalink
screencopy: add hacky synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Oct 23, 2024
1 parent 57d37be commit 9f93910
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frame/capturer/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ impl Dispatch<ZwlrScreencopyFrameV1, ()> for Capturer {
}

zwlr_screencopy_frame_v1::Event::Ready { .. } => {
// The frame is sadly not always ready at this stage, and I couldn't find how to make Vulkan synchronize with the compositor ☹️
thread::sleep(Duration::from_millis(10));

let luma = state
.vulkan
.as_ref()
Expand Down

0 comments on commit 9f93910

Please sign in to comment.