[mutter] wayland: set the interface vfuncs when declaring the keyboard interface
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland: set the interface vfuncs when declaring the keyboard interface
- Date: Tue, 22 Jul 2014 15:59:53 +0000 (UTC)
commit dfe1c106f238abbab5a33e0511f7ed303e1a1cc3
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jul 22 00:27:39 2014 +0200
wayland: set the interface vfuncs when declaring the keyboard interface
Otherwise the NULL vtable would be accessed when trying to release the keyboard.
https://bugzilla.gnome.org/show_bug.cgi?id=733563
src/wayland/meta-wayland-keyboard.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-keyboard.c b/src/wayland/meta-wayland-keyboard.c
index 8626722..4ee7fcd 100644
--- a/src/wayland/meta-wayland-keyboard.c
+++ b/src/wayland/meta-wayland-keyboard.c
@@ -549,7 +549,7 @@ meta_wayland_keyboard_create_new_resource (MetaWaylandKeyboard *keyboard,
cr = wl_resource_create (client, &wl_keyboard_interface,
MIN (META_WL_KEYBOARD_VERSION, wl_resource_get_version (seat_resource)), id);
- wl_resource_set_implementation (cr, NULL, keyboard, unbind_resource);
+ wl_resource_set_implementation (cr, &keyboard_interface, keyboard, unbind_resource);
wl_list_insert (&keyboard->resource_list, wl_resource_get_link (cr));
wl_keyboard_send_keymap (cr,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]