mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 10:29:49 +01:00
types/wlr_screencopy_v1: log error on read pixels failure
This commit is contained in:
parent
144b41a45c
commit
ccbce0f0a6
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue