take seat param for handle_command and rename

This commit is contained in:
Tony Crisci 2018-02-24 12:50:24 -05:00
parent 6becfc1431
commit ac8269d536
5 changed files with 32 additions and 25 deletions

View file

@ -336,8 +336,7 @@ void ipc_client_handle_command(struct ipc_client *client) {
case IPC_COMMAND:
{
config_clear_handler_context(config);
config->handler_context.seat = input_manager_current_seat(input_manager);
struct cmd_results *results = handle_command(buf);
struct cmd_results *results = execute_command(buf, NULL);
const char *json = cmd_results_to_json(results);
char reply[256];
int length = snprintf(reply, sizeof(reply), "%s", json);