diff options
author | emersion <contact@emersion.fr> | 2018-12-09 17:27:37 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-24 12:18:40 +0100 |
commit | 909b3b16f3b7634dff02030123637ae94a012850 (patch) | |
tree | 7aa702ca5fdb0a48aedf8c06795645afb424481b /include | |
parent | 3f82eb185353d64277c77f82ca727948e87c4024 (diff) |
data-device: add wlr_data_offer.type
Diffstat (limited to 'include')
-rw-r--r-- | include/types/wlr_data_device.h | 2 | ||||
-rw-r--r-- | include/wlr/types/wlr_data_device.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/types/wlr_data_device.h b/include/types/wlr_data_device.h index 0f58cc29..28073880 100644 --- a/include/types/wlr_data_device.h +++ b/include/types/wlr_data_device.h @@ -17,7 +17,7 @@ struct wlr_client_data_source { extern const struct wlr_surface_role drag_icon_surface_role; struct wlr_data_offer *data_offer_create(struct wl_resource *device_resource, - struct wlr_data_source *source); + struct wlr_data_source *source, enum wlr_data_offer_type type); void data_offer_update_action(struct wlr_data_offer *offer); void data_offer_destroy(struct wlr_data_offer *offer); diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h index 5bf52599..e82dfa60 100644 --- a/include/wlr/types/wlr_data_device.h +++ b/include/wlr/types/wlr_data_device.h @@ -35,9 +35,15 @@ struct wlr_data_device_manager { void *data; }; +enum wlr_data_offer_type { + WLR_DATA_OFFER_SELECTION, + WLR_DATA_OFFER_DRAG, +}; + struct wlr_data_offer { struct wl_resource *resource; struct wlr_data_source *source; + enum wlr_data_offer_type type; uint32_t actions; enum wl_data_device_manager_dnd_action preferred_action; |