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

@ -22,7 +22,7 @@ static void server_ready(struct wl_listener *listener, void *data) {
config->active = true;
while (config->cmd_queue->length) {
char *line = config->cmd_queue->items[0];
struct cmd_results *res = handle_command(line);
struct cmd_results *res = execute_command(line, NULL);
if (res->status != CMD_SUCCESS) {
wlr_log(L_ERROR, "Error on line '%s': %s", line, res->error);
}