screencopy: send failed after output disconnect

This prevents screencopy applications from hanging because a failed
event never got sent when the output was disconnected or disabled after
the call to buffer().
This commit is contained in:
Jason Francis 2019-07-27 19:31:37 -04:00 committed by Simon Ser
parent ce3e413e83
commit 724b5e1b8d
2 changed files with 30 additions and 0 deletions

View file

@ -43,6 +43,8 @@ struct wlr_screencopy_frame_v1 {
struct wlr_output *output;
struct wl_listener output_precommit;
struct wl_listener output_destroy;
struct wl_listener output_enable;
void *data;
};