mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
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.
This commit is contained in:
parent
dea94f2bad
commit
23148d283f
3 changed files with 39 additions and 41 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue