data-device: refactor set selections for xwayland

This commit is contained in:
Tony Crisci 2017-10-15 14:49:43 -04:00
parent df0a8d3abe
commit 02f4acc69f
2 changed files with 21 additions and 8 deletions

View file

@ -36,6 +36,12 @@ struct wlr_data_source {
uint32_t compositor_action;
bool actions_set;
void (*accept)(struct wlr_data_source *source, uint32_t serial,
const char *mime_type);
void (*send)(struct wlr_data_source *source, const char *mime_type,
int32_t fd);
void (*cancel)(struct wlr_data_source *source);
struct {
struct wl_signal destroy;
} events;
@ -72,4 +78,7 @@ struct wlr_data_device_manager *wlr_data_device_manager_create(
*/
void wlr_seat_handle_send_selection(struct wlr_seat_handle *handle);
void wlr_seat_set_selection(struct wlr_seat *seat,
struct wlr_data_source *source, uint32_t serial);
#endif