aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/types/wlr_data_device.h2
-rw-r--r--include/wlr/types/wlr_data_device.h6
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;