diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-22 13:00:37 +0200 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-22 23:36:24 +0200 |
commit | 544c6c412a3e432cb88a4454d0ccfab2856fac8c (patch) | |
tree | 7d086e921769519899021b6c20f43b1ce088acbe | |
parent | b093a5d16f5e686f70e1ff20829246fecc840a5f (diff) | |
download | sway-544c6c412a3e432cb88a4454d0ccfab2856fac8c.tar.xz |
ipc: Return correct status in ipc reply.
-rw-r--r-- | sway/ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -222,7 +222,7 @@ void ipc_client_handle_command(struct ipc_client *client) { case IPC_COMMAND: { buf[client->payload_length] = '\0'; - bool success = handle_command(buf); + bool success = (handle_command(buf) == CMD_SUCCESS); char reply[64]; int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false"); ipc_send_reply(client, reply, (uint32_t) length); |