mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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:
parent
dfe1c106f2
commit
a02b8441b1
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user