diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2023-10-09 22:05:05 +0100 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-03-01 21:44:52 +0100 |
commit | 44a2cff3b309f181848b535857b80e2e4e7891e1 (patch) | |
tree | 4bf19210814e8b6957f620a6f8a78c2df163082a /sway/action-binder-v1.c | |
parent | 5e18ed3cf03eee9e83909fede46dd98dff652647 (diff) |
ext-action-binder-v1: implement new protocol
and add a new command to trigger actions.
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'sway/action-binder-v1.c')
-rw-r--r-- | sway/action-binder-v1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sway/action-binder-v1.c b/sway/action-binder-v1.c new file mode 100644 index 00000000..bf6ffef5 --- /dev/null +++ b/sway/action-binder-v1.c @@ -0,0 +1,15 @@ +#include <wlr/types/wlr_action_binder_v1.h> + +void action_binder_v1_bind(struct wl_listener *listener, void *data) { + struct wlr_action_binder_v1_state *state = data; + struct wlr_action_binding_v1 *binding = NULL, *tmp = NULL; + wl_list_for_each_safe(binding, tmp, &state->bind_queue, link) { + wlr_action_binder_v1_bind(binding, ""); + } +} + +void action_binder_v1_unbind(struct wl_listener *listener, void *data) { +} + +void action_binder_v1_delete(struct wl_listener *listener, void *data) { +} |