types/wlr_screencopy_v1: log error on read pixels failure

master
Simon Zeni 4 years ago committed by Simon Ser
parent 144b41a45c
commit ccbce0f0a6

@ -251,6 +251,7 @@ static void frame_handle_output_precommit(struct wl_listener *listener,
wl_shm_buffer_end_access(shm_buffer); wl_shm_buffer_end_access(shm_buffer);
if (!ok) { if (!ok) {
wlr_log(WLR_ERROR, "Failed to read pixels from renderer");
zwlr_screencopy_frame_v1_send_failed(frame->resource); zwlr_screencopy_frame_v1_send_failed(frame->resource);
frame_destroy(frame); frame_destroy(frame);
return; return;

Loading…
Cancel
Save