screencopy: listen to buffer destroy

This commit is contained in:
emersion 2018-06-23 19:06:10 +01:00
parent 9aaa9ba477
commit dbb01cbcd0
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 13 additions and 2 deletions

View file

@ -23,6 +23,7 @@ struct wlr_screencopy_frame_v1 {
int stride;
struct wl_shm_buffer *buffer;
struct wl_listener buffer_destroy;
struct wlr_output *output;
struct wl_listener output_swap_buffers;