diff options
Diffstat (limited to 'src/ipc.c')
-rw-r--r-- | src/ipc.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); |