aboutsummaryrefslogtreecommitdiff
path: root/sway/action-binder-v1.c
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-03-03 21:56:50 +0100
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-03-03 22:40:53 +0100
commit52d0f4d6ca68113c661d1ae7c1c42f7af30f5b96 (patch)
tree8fd4e2395ca260dcd41f077a7d7e3d6ed0a18dcc /sway/action-binder-v1.c
parent44a2cff3b309f181848b535857b80e2e4e7891e1 (diff)
action-binder-v1: update protocolmaster
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/action-binder-v1.c b/sway/action-binder-v1.c
index bf6ffef5..52452778 100644
--- a/sway/action-binder-v1.c
+++ b/sway/action-binder-v1.c
@@ -1,15 +1,15 @@
#include <wlr/types/wlr_action_binder_v1.h>
+#include "stringop.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, "");
+ char *msg = format_str("User defined trigger for %s:%s in the config file.",
+ binding->namespace, binding->name);
+ wlr_action_binding_v1_bind(binding, msg ? msg : "");
}
}
-void action_binder_v1_unbind(struct wl_listener *listener, void *data) {
-}
-
void action_binder_v1_delete(struct wl_listener *listener, void *data) {
}