aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-04-27 12:20:58 -0400
committerSimon Ser <contact@emersion.fr>2021-04-27 18:28:41 +0200
commitccbce0f0a6cf1a058b668e19b37b0aa39d81c344 (patch)
tree2d4143b5e0b8a0a1139013a7a15c5b825bfb4620
parent144b41a45cc0b7d7793e1e7e2e318548cd3f5531 (diff)
types/wlr_screencopy_v1: log error on read pixels failure
-rw-r--r--types/wlr_screencopy_v1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c
index 3d3f9605..d9b3f8dc 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;