types/wlr_screencopy_v1: log error on read pixels failure

This commit is contained in:
Simon Zeni 2021-04-27 12:20:58 -04:00 committed by Simon Ser
parent 144b41a45c
commit ccbce0f0a6
1 changed files with 1 additions and 0 deletions

View File

@ -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;