From 3d7492f9075582a29d450a8934e3e0aeb7412fee Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 3 Mar 2024 22:00:01 +0100 Subject: types/wlr-action-binder: update protocol Signed-off-by: Anna (navi) Figueiredo Gomes --- types/wlr_action_binder_v1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'types') diff --git a/types/wlr_action_binder_v1.c b/types/wlr_action_binder_v1.c index f5eebacb..3c8b0c30 100644 --- a/types/wlr_action_binder_v1.c +++ b/types/wlr_action_binder_v1.c @@ -211,7 +211,7 @@ static void action_binder_create_binding(struct wl_client *client, &ext_action_binding_v1_implementation, bind, action_binding_destroy); } -static void action_binder_bind_actions(struct wl_client *client, struct wl_resource *resource) { +static void action_binder_commit(struct wl_client *client, struct wl_resource *resource) { struct wlr_action_binder_v1_state *state = wlr_action_binder_v1_state_from_resource(resource); struct wlr_action_binding_v1 *binding = NULL; @@ -224,12 +224,12 @@ static void action_binder_bind_actions(struct wl_client *client, struct wl_resou } } - wl_signal_emit(&state->binder->events.bind, NULL); + wl_signal_emit_mutable(&state->binder->events.bind, state); } static const struct ext_action_binder_v1_interface ext_action_binder_v1_implementation = { .create_binding = action_binder_create_binding, - .bind = action_binder_bind_actions, + .commit = action_binder_commit, .destroy = resource_handle_destroy, }; -- cgit v1.2.3