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

@@ -641,8 +641,7 @@ meta_wayland_keyboard_create_new_resource (MetaWaylandKeyboard *keyboard,
{
struct wl_resource *cr;
cr = wl_resource_create (client, &wl_keyboard_interface,
MIN (META_WL_KEYBOARD_VERSION, wl_resource_get_version (seat_resource)), id);
cr = wl_resource_create (client, &wl_keyboard_interface, wl_resource_get_version (seat_resource), id);
wl_resource_set_implementation (cr, &keyboard_interface, keyboard, unbind_resource);
wl_list_insert (&keyboard->resource_list, wl_resource_get_link (cr));