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

@ -102,8 +102,7 @@ bind_output (struct wl_client *client,
struct wl_resource *resource;
guint mode_flags;
resource = wl_resource_create (client, &wl_output_interface,
MIN (META_WL_OUTPUT_VERSION, version), id);
resource = wl_resource_create (client, &wl_output_interface, version, id);
wayland_output->resources = g_list_prepend (wayland_output->resources, resource);
wl_resource_set_user_data (resource, wayland_output);