wayland: Simplify global version management

libwayland-server already checks the bounds of the bind for versioning,
meaning that the value that we pass to wl_global_create is all we need.
This commit is contained in:
Jasper St. Pierre
2014-08-04 10:24:59 -04:00
parent ab53c0e943
commit 75b6e917ad
5 changed files with 8 additions and 16 deletions

View File

@ -508,9 +508,7 @@ bind_manager (struct wl_client *client,
void *data, guint32 version, guint32 id)
{
struct wl_resource *resource;
resource = wl_resource_create (client, &wl_data_device_manager_interface,
MIN (version, META_WL_DATA_DEVICE_MANAGER_VERSION), id);
resource = wl_resource_create (client, &wl_data_device_manager_interface, version, id);
wl_resource_set_implementation (resource, &manager_interface, NULL, NULL);
}