From 23148d283fb00bff0dff6f0f8126b9f940d07544 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Tue, 26 Jan 2021 18:41:57 -0500 Subject: xwayland/selection: extract out property requests Apart from reducing duplication, this has the positive side-effect of allowing all deallocs to use `xwm_selection_transfer_destroy_property_reply`, as opposed to the latter and a mix of ad-hoc `free`s. --- include/xwayland/selection.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/xwayland') diff --git a/include/xwayland/selection.h b/include/xwayland/selection.h index c0bae533..7d1c1e19 100644 --- a/include/xwayland/selection.h +++ b/include/xwayland/selection.h @@ -47,6 +47,8 @@ void xwm_selection_transfer_close_wl_client_fd( struct wlr_xwm_selection_transfer *transfer); void xwm_selection_transfer_destroy_property_reply( struct wlr_xwm_selection_transfer *transfer); +bool xwm_selection_transfer_get_selection_property( + struct wlr_xwm_selection_transfer *transfer, bool delete); xcb_atom_t xwm_mime_type_to_atom(struct wlr_xwm *xwm, char *mime_type); char *xwm_mime_type_from_atom(struct wlr_xwm *xwm, xcb_atom_t atom); -- cgit v1.2.3