aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-12-02 08:17:45 -0500
committerDrew DeVault <sir@cmpwn.com>2016-12-02 08:17:45 -0500
commit39cf9a82f7c1f7e5d7b4952cabf215c8459a99e2 (patch)
tree267efa5b40f7272bdfec16eac054961df6f4d417 /sway/ipc-server.c
parentf23880b1fdd70a21b04317c18208a1f3ce356839 (diff)
Enforce command policies
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c2
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) {
switch (client->current_command) {
case IPC_COMMAND:
{
- struct cmd_results *results = handle_command(buf);
+ struct cmd_results *results = handle_command(buf, CONTEXT_IPC);
const char *json = cmd_results_to_json(results);
char reply[256];
int length = snprintf(reply, sizeof(reply), "%s", json);