screencopy: Include error in error log

This commit is contained in:
Ian Douglas Scott 2024-03-28 15:15:32 -07:00
parent 7c8fddc568
commit 62c9f986ba

View file

@ -234,10 +234,10 @@ impl ScreencopyHandler for AppData {
_conn: &Connection,
_qh: &QueueHandle<Self>,
screencopy_frame: &zcosmic_screencopy_frame_v2::ZcosmicScreencopyFrameV2,
_reason: WEnum<zcosmic_screencopy_frame_v2::FailureReason>,
reason: WEnum<zcosmic_screencopy_frame_v2::FailureReason>,
) {
// TODO
log::error!("Screencopy failed");
log::error!("Screencopy failed: {:?}", reason);
let session = &screencopy_frame.data::<FrameData>().unwrap().session;
if let Some(capture) = Capture::for_session(session) {
capture.stop();