wayland: set the interface vfuncs when declaring the touch interface

Otherwise the NULL vtable would be accessed when trying to release the touch
device.

https://bugzilla.gnome.org/show_bug.cgi?id=733563
This commit is contained in:
Carlos Garnacho 2014-07-22 01:36:31 +02:00
parent dfe1c106f2
commit a02b8441b1

View File

@ -543,6 +543,6 @@ meta_wayland_touch_create_new_resource (MetaWaylandTouch *touch,
cr = wl_resource_create (client, &wl_touch_interface,
MIN (META_WL_TOUCH_VERSION, wl_resource_get_version (seat_resource)), id);
wl_resource_set_implementation (cr, NULL, touch, unbind_resource);
wl_resource_set_implementation (cr, &touch_interface, touch, unbind_resource);
wl_list_insert (&touch->resource_list, wl_resource_get_link (cr));
}