mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
take seat param for handle_command and rename
This commit is contained in:
parent
6becfc1431
commit
ac8269d536
5 changed files with 32 additions and 25 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue