aboutsummaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ipc.c b/src/ipc.c
index 86ff45de..f69ba2ae 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -1678,7 +1678,7 @@ void ipc_send_barconfig_update_event(Barconfig *barconfig) {
/*
* For the binding events, we send the serialized binding struct.
*/
-void ipc_send_binding_event(const char *event_type, Binding *bind) {
+void ipc_send_binding_event(const char *event_type, Binding *bind, const char *modename) {
DLOG("Issue IPC binding %s event (sym = %s, code = %d)\n", event_type, bind->symbol, bind->keycode);
setlocale(LC_NUMERIC, "C");
@@ -1690,6 +1690,13 @@ void ipc_send_binding_event(const char *event_type, Binding *bind) {
ystr("change");
ystr(event_type);
+ ystr("mode");
+ if (modename == NULL) {
+ ystr("default");
+ } else {
+ ystr(modename);
+ }
+
ystr("binding");
dump_binding(gen, bind);