commit 5db2b5a
Michael Forney
·
2019-12-30 05:50:44 +0000 UTC
parent b91efe6
data_device: Support protocol version 2
2 files changed,
+2,
-1
+1,
-0
1@@ -59,6 +59,7 @@ set_selection(struct wl_client *client, struct wl_resource *resource, struct wl_
2 static const struct wl_data_device_interface data_device_impl = {
3 .start_drag = start_drag,
4 .set_selection = set_selection,
5+ .release = destroy_resource,
6 };
7
8 static void
+1,
-1
1@@ -63,5 +63,5 @@ bind_data_device_manager(struct wl_client *client, void *data, uint32_t version,
2 struct wl_global *
3 data_device_manager_create(struct wl_display *display)
4 {
5- return wl_global_create(display, &wl_data_device_manager_interface, 1, NULL, &bind_data_device_manager);
6+ return wl_global_create(display, &wl_data_device_manager_interface, 2, NULL, &bind_data_device_manager);
7 }