blob: 52452778ec7439f63b5b1d2fa1678f8232f0e273 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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) {
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_delete(struct wl_listener *listener, void *data) {
}
|