diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-02-24 12:50:24 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-02-24 12:50:24 -0500 |
commit | ac8269d536bf636bd0fbf8047cf6516912634864 (patch) | |
tree | d23376a0f745e113b3ddfb10573375c9d6ea587e /sway/ipc-server.c | |
parent | update log.h for latest wlr (diff) | |
download | sway-ac8269d536bf636bd0fbf8047cf6516912634864.tar.gz sway-ac8269d536bf636bd0fbf8047cf6516912634864.tar.zst sway-ac8269d536bf636bd0fbf8047cf6516912634864.zip |
take seat param for handle_command and rename
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r-- | sway/ipc-server.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index ee259c99..4c0953e8 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c | |||
@@ -336,8 +336,7 @@ void ipc_client_handle_command(struct ipc_client *client) { | |||
336 | case IPC_COMMAND: | 336 | case IPC_COMMAND: |
337 | { | 337 | { |
338 | config_clear_handler_context(config); | 338 | config_clear_handler_context(config); |
339 | config->handler_context.seat = input_manager_current_seat(input_manager); | 339 | struct cmd_results *results = execute_command(buf, NULL); |
340 | struct cmd_results *results = handle_command(buf); | ||
341 | const char *json = cmd_results_to_json(results); | 340 | const char *json = cmd_results_to_json(results); |
342 | char reply[256]; | 341 | char reply[256]; |
343 | int length = snprintf(reply, sizeof(reply), "%s", json); | 342 | int length = snprintf(reply, sizeof(reply), "%s", json); |