xwm: end transfers when the requestor is destroyed

This improves the failure cases when incremental transfers fail to
complete successfully for one reason or another.
This commit is contained in:
John Chadwick 2020-07-02 19:25:25 -07:00 committed by Simon Ser
parent f82a27f55a
commit 58bcec9d94
3 changed files with 24 additions and 0 deletions

View file

@ -56,6 +56,8 @@ struct wlr_xwm_selection *xwm_get_selection(struct wlr_xwm *xwm,
void xwm_send_incr_chunk(struct wlr_xwm_selection_transfer *transfer);
void xwm_handle_selection_request(struct wlr_xwm *xwm,
xcb_selection_request_event_t *req);
void xwm_handle_selection_destroy_notify(struct wlr_xwm *xwm,
xcb_destroy_notify_event_t *event);
void xwm_get_incr_chunk(struct wlr_xwm_selection_transfer *transfer);
void xwm_handle_selection_notify(struct wlr_xwm *xwm,