wayland: Simplify slave version management

Slave objects should always be the same version as their parent
constructor, except for the generic wl_registry.bind.
This commit is contained in:
Jasper St. Pierre
2014-08-04 10:22:23 -04:00
parent c2fe6a18ad
commit ab53c0e943
7 changed files with 14 additions and 55 deletions

View File

@ -802,8 +802,7 @@ meta_wayland_pointer_create_new_resource (MetaWaylandPointer *pointer,
{
struct wl_resource *cr;
cr = wl_resource_create (client, &wl_pointer_interface,
MIN (META_WL_POINTER_VERSION, wl_resource_get_version (seat_resource)), id);
cr = wl_resource_create (client, &wl_pointer_interface, wl_resource_get_version (seat_resource), id);
wl_resource_set_implementation (cr, &pointer_interface, pointer, unbind_resource);
wl_list_insert (&pointer->resource_list, wl_resource_get_link (cr));