wayland: Upgrade to v2 of data-device

To fix a resource leak.
This commit is contained in:
Jasper St. Pierre 2014-11-22 12:20:47 -08:00
parent 89b14babb9
commit b832bc7424
2 changed files with 8 additions and 1 deletions

View File

@ -547,9 +547,16 @@ data_device_set_selection (struct wl_client *client,
meta_wayland_data_device_set_selection (data_device, source, serial); meta_wayland_data_device_set_selection (data_device, source, serial);
} }
static void
data_device_release(struct wl_client *client, struct wl_resource *resource)
{
wl_resource_destroy(resource);
}
static const struct wl_data_device_interface data_device_interface = { static const struct wl_data_device_interface data_device_interface = {
data_device_start_drag, data_device_start_drag,
data_device_set_selection, data_device_set_selection,
data_device_release,
}; };
static void static void

View File

@ -36,7 +36,7 @@
/* Global/master objects (version exported by wl_registry and negotiated through bind) */ /* Global/master objects (version exported by wl_registry and negotiated through bind) */
#define META_WL_COMPOSITOR_VERSION 3 #define META_WL_COMPOSITOR_VERSION 3
#define META_WL_DATA_DEVICE_MANAGER_VERSION 1 #define META_WL_DATA_DEVICE_MANAGER_VERSION 2
#define META_XDG_SHELL_VERSION 1 #define META_XDG_SHELL_VERSION 1
#define META_WL_SHELL_VERSION 1 #define META_WL_SHELL_VERSION 1
#define META_WL_SEAT_VERSION 4 #define META_WL_SEAT_VERSION 4