diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-15 14:49:43 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-15 14:49:43 -0400 |
commit | 02f4acc69f8d94657f341b80364180c8c2e3ce33 (patch) | |
tree | d60265afb505d2994ce581b2cac25fb3e3eeda4c /include | |
parent | df0a8d3abe6a7a8cd010e07f078c0e92ea2fb516 (diff) |
data-device: refactor set selections for xwayland
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_data_device.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h index 6c5dc097..b4aa024a 100644 --- a/include/wlr/types/wlr_data_device.h +++ b/include/wlr/types/wlr_data_device.h @@ -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 |