bar-bindsym: address ianyfan's comments

This commit is contained in:
Brian Ashworth 2018-10-09 08:12:02 -04:00
parent 1c969e86f5
commit d3f0e52784
5 changed files with 28 additions and 18 deletions

View file

@ -338,6 +338,8 @@ static void ipc_get_outputs(struct swaybar *bar) {
}
void ipc_execute_binding(struct swaybar *bar, struct swaybar_binding *bind) {
wlr_log(WLR_DEBUG, "Executing binding for button %u (release=%d): `%s`",
bind->button, bind->release, bind->command);
uint32_t len = strlen(bind->command);
free(ipc_single_command(bar->ipc_socketfd,
IPC_COMMAND, bind->command, &len));