|
|
@ -34,6 +34,7 @@ void xwm_selection_transfer_destroy_property_reply(
|
|
|
|
|
|
|
|
|
|
|
|
void xwm_selection_transfer_init(struct wlr_xwm_selection_transfer *transfer,
|
|
|
|
void xwm_selection_transfer_init(struct wlr_xwm_selection_transfer *transfer,
|
|
|
|
struct wlr_xwm_selection *selection) {
|
|
|
|
struct wlr_xwm_selection *selection) {
|
|
|
|
|
|
|
|
memset(transfer, 0, sizeof(*transfer));
|
|
|
|
transfer->selection = selection;
|
|
|
|
transfer->selection = selection;
|
|
|
|
transfer->wl_client_fd = -1;
|
|
|
|
transfer->wl_client_fd = -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -174,6 +175,7 @@ int xwm_handle_selection_event(struct wlr_xwm *xwm,
|
|
|
|
|
|
|
|
|
|
|
|
void xwm_selection_init(struct wlr_xwm_selection *selection,
|
|
|
|
void xwm_selection_init(struct wlr_xwm_selection *selection,
|
|
|
|
struct wlr_xwm *xwm, xcb_atom_t atom) {
|
|
|
|
struct wlr_xwm *xwm, xcb_atom_t atom) {
|
|
|
|
|
|
|
|
memset(selection, 0, sizeof(*selection));
|
|
|
|
wl_list_init(&selection->incoming);
|
|
|
|
wl_list_init(&selection->incoming);
|
|
|
|
wl_list_init(&selection->outgoing);
|
|
|
|
wl_list_init(&selection->outgoing);
|
|
|
|
|
|
|
|
|
|
|
|