mirror of
https://github.com/brl/mutter.git
synced 2025-06-15 09:49:30 +00:00
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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user