diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-03-03 21:56:50 +0100 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-03-03 22:40:53 +0100 |
commit | 52d0f4d6ca68113c661d1ae7c1c42f7af30f5b96 (patch) | |
tree | 8fd4e2395ca260dcd41f077a7d7e3d6ed0a18dcc /sway/commands | |
parent | 44a2cff3b309f181848b535857b80e2e4e7891e1 (diff) |
action-binder-v1: update protocolmaster
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/action.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sway/commands/action.c b/sway/commands/action.c index 96cb3b59..877d5805 100644 --- a/sway/commands/action.c +++ b/sway/commands/action.c @@ -11,8 +11,13 @@ struct cmd_results *cmd_action(int argc, char **argv) { return error; } - wlr_action_binder_v1_trigger(server.action_binder, argv[0], argv[1], - EXT_ACTION_BINDING_V1_TRIGGER_TYPE_ONE_SHOT); + struct wlr_action_binder_v1_state *state = NULL; + struct wlr_action_binding_v1 *binding = NULL; + wl_list_for_each(state, &server.action_binder->states, link) { + wl_list_for_each(binding, &state->binds, link) { + wlr_action_binding_v1_trigger(binding, EXT_ACTION_BINDING_V1_TRIGGER_TYPE_ONE_SHOT, 0); + } + } return cmd_results_new(CMD_SUCCESS, NULL); } |