From ccbce0f0a6cf1a058b668e19b37b0aa39d81c344 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Tue, 27 Apr 2021 12:20:58 -0400 Subject: [PATCH] types/wlr_screencopy_v1: log error on read pixels failure --- types/wlr_screencopy_v1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c index 3d3f9605d..d9b3f8dcf 100644 --- a/types/wlr_screencopy_v1.c +++ b/types/wlr_screencopy_v1.c @@ -251,6 +251,7 @@ static void frame_handle_output_precommit(struct wl_listener *listener, wl_shm_buffer_end_access(shm_buffer); if (!ok) { + wlr_log(WLR_ERROR, "Failed to read pixels from renderer"); zwlr_screencopy_frame_v1_send_failed(frame->resource); frame_destroy(frame); return;