mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
types/wlr_screencopy_v1: log error on read pixels failure
This commit is contained in:
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);
|
||||
|
||||
if (!ok) {
|
||||
wlr_log(WLR_ERROR, "Failed to read pixels from renderer");
|
||||
zwlr_screencopy_frame_v1_send_failed(frame->resource);
|
||||
frame_destroy(frame);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user