diff options
author | 2016-12-02 08:17:45 -0500 | |
---|---|---|
committer | 2016-12-02 08:17:45 -0500 | |
commit | 39cf9a82f7c1f7e5d7b4952cabf215c8459a99e2 (patch) | |
tree | 267efa5b40f7272bdfec16eac054961df6f4d417 /sway/ipc-server.c | |
parent | Add support for command policies in config file (diff) | |
download | sway-39cf9a82f7c1f7e5d7b4952cabf215c8459a99e2.tar.gz sway-39cf9a82f7c1f7e5d7b4952cabf215c8459a99e2.tar.zst sway-39cf9a82f7c1f7e5d7b4952cabf215c8459a99e2.zip |
Enforce command policies
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r-- | sway/ipc-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index ebb5ce58..e575081b 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c | |||
@@ -312,7 +312,7 @@ void ipc_client_handle_command(struct ipc_client *client) { | |||
312 | switch (client->current_command) { | 312 | switch (client->current_command) { |
313 | case IPC_COMMAND: | 313 | case IPC_COMMAND: |
314 | { | 314 | { |
315 | struct cmd_results *results = handle_command(buf); | 315 | struct cmd_results *results = handle_command(buf, CONTEXT_IPC); |
316 | const char *json = cmd_results_to_json(results); | 316 | const char *json = cmd_results_to_json(results); |
317 | char reply[256]; | 317 | char reply[256]; |
318 | int length = snprintf(reply, sizeof(reply), "%s", json); | 318 | int length = snprintf(reply, sizeof(reply), "%s", json); |