diff --git a/src/wayland/meta-wayland-inhibit-shortcuts.c b/src/wayland/meta-wayland-inhibit-shortcuts.c index a7ba3c211..8e5ed2413 100644 --- a/src/wayland/meta-wayland-inhibit-shortcuts.c +++ b/src/wayland/meta-wayland-inhibit-shortcuts.c @@ -41,8 +41,7 @@ struct _MetaWaylandKeyboardShotscutsInhibit }; static void -zwp_keyboard_shortcuts_inhibit_destroy (struct wl_client *client, - struct wl_resource *resource) +zwp_keyboard_shortcuts_inhibit_destructor (struct wl_resource *resource) { MetaWaylandKeyboardShotscutsInhibit *shortcut_inhibit; @@ -64,6 +63,12 @@ zwp_keyboard_shortcuts_inhibit_destroy (struct wl_client *client, shortcut_inhibit->seat); } g_free (shortcut_inhibit); +} + +static void +zwp_keyboard_shortcuts_inhibit_destroy (struct wl_client *client, + struct wl_resource *resource) +{ wl_resource_destroy (resource); } @@ -148,7 +153,7 @@ zwp_keyboard_shortcuts_inhibit_manager_inhibit_shortcuts (struct wl_client *cl wl_resource_set_implementation (keyboard_shortcuts_inhibit_resource, &meta_keyboard_shortcuts_inhibit_interface, shortcut_inhibit, - NULL); + zwp_keyboard_shortcuts_inhibit_destructor); } static const struct zwp_keyboard_shortcuts_inhibit_manager_v1_interface