Skip to content

Commit 5dc4ce9

Browse files
committed
screencopy: Use info! logging for FailureReason::Stopped
This is an expected case, not an error.
1 parent e679ac5 commit 5dc4ce9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/wayland/screencopy.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ impl ScreencopyHandler for AppData {
243243
session.attach_buffer_and_commit(&capture, conn, &self.qh);
244244
} else {
245245
// TODO
246-
log::error!("Screencopy failed: {:?}", reason);
246+
if reason == WEnum::Value(FailureReason::Stopped) {
247+
log::info!("Screencopy frame capture stopped");
248+
} else {
249+
log::error!("Screencopy failed: {:?}", reason);
250+
}
247251
capture.stop();
248252
}
249253
}

0 commit comments

Comments
 (0)