diff options
| author | Drew DeVault <sir@cmpwn.com> | 2018-11-26 18:25:59 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-26 18:25:59 -0500 | 
| commit | a2b8d47ff232fe8519953d60aa32dc72faff6044 (patch) | |
| tree | 854d60c76cc66ab13bd684343fa0af55f1ab42e0 /include | |
| parent | ed1ffddba8dbba885aaaf913ec3f25f94f834ccc (diff) | |
| parent | 4423f88fac1d82756bab451f451b159fa6d0e9f5 (diff) | |
| download | wlroots-a2b8d47ff232fe8519953d60aa32dc72faff6044.tar.xz | |
Merge pull request #1384 from emersion/data-multiple-devices
data-device: allow multiple devices for the same seat
Diffstat (limited to 'include')
| -rw-r--r-- | include/types/wlr_data_device.h | 3 | ||||
| -rw-r--r-- | include/wlr/types/wlr_data_device.h | 13 | 
2 files changed, 8 insertions, 8 deletions
| diff --git a/include/types/wlr_data_device.h b/include/types/wlr_data_device.h index 388e91a5..376c5f09 100644 --- a/include/types/wlr_data_device.h +++ b/include/types/wlr_data_device.h @@ -19,6 +19,7 @@ extern const struct wlr_surface_role drag_icon_surface_role;  struct wlr_data_offer *data_offer_create(struct wl_client *client,  	struct wlr_data_source *source, uint32_t version);  void data_offer_update_action(struct wlr_data_offer *offer); +void data_offer_destroy(struct wlr_data_offer *offer);  struct wlr_client_data_source *client_data_source_create(  	struct wl_client *client, uint32_t version, uint32_t id, @@ -26,7 +27,7 @@ struct wlr_client_data_source *client_data_source_create(  struct wlr_client_data_source *client_data_source_from_resource(  	struct wl_resource *resource);  struct wlr_data_offer *data_source_send_offer(struct wlr_data_source *source, -	struct wlr_seat_client *target); +	struct wl_resource *device_resource);  void data_source_notify_finish(struct wlr_data_source *source);  bool seat_client_start_drag(struct wlr_seat_client *client, diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h index 9ce8f400..9c4ce995 100644 --- a/include/wlr/types/wlr_data_device.h +++ b/include/wlr/types/wlr_data_device.h @@ -12,14 +12,14 @@  #include <wayland-server.h>  #include <wlr/types/wlr_seat.h> -extern const struct -wlr_pointer_grab_interface wlr_data_device_pointer_drag_interface; +extern const struct wlr_pointer_grab_interface +	wlr_data_device_pointer_drag_interface; -extern const struct -wlr_keyboard_grab_interface wlr_data_device_keyboard_drag_interface; +extern const struct wlr_keyboard_grab_interface +	wlr_data_device_keyboard_drag_interface; -extern const struct -wlr_touch_grab_interface wlr_data_device_touch_drag_interface; +extern const struct wlr_touch_grab_interface +	wlr_data_device_touch_drag_interface;  struct wlr_data_device_manager {  	struct wl_global *global; @@ -72,7 +72,6 @@ struct wlr_data_source {  	// source status  	bool accepted; -	struct wlr_data_offer *offer;  	// drag'n'drop status  	enum wl_data_device_manager_dnd_action current_dnd_action; | 
