mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
data-device: add wlr_data_offer.type
This commit is contained in:
parent
3f82eb1853
commit
909b3b16f3
6 changed files with 23 additions and 7 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue