diff options
author | Tudor Brindus <me@tbrindus.ca> | 2021-01-26 18:41:57 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-29 10:18:03 +0100 |
commit | 23148d283fb00bff0dff6f0f8126b9f940d07544 (patch) | |
tree | a6b3e13a21ba143b84627d0e9df536397be437ba /include/xwayland | |
parent | dea94f2bad74bf3edf8ff9c44191c076b23efa23 (diff) |
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.
Diffstat (limited to 'include/xwayland')
-rw-r--r-- | include/xwayland/selection.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |