diff options
-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) { | |||
222 | case IPC_COMMAND: | 222 | case IPC_COMMAND: |
223 | { | 223 | { |
224 | buf[client->payload_length] = '\0'; | 224 | buf[client->payload_length] = '\0'; |
225 | bool success = handle_command(buf); | 225 | bool success = (handle_command(buf) == CMD_SUCCESS); |
226 | char reply[64]; | 226 | char reply[64]; |
227 | int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false"); | 227 | int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false"); |
228 | ipc_send_reply(client, reply, (uint32_t) length); | 228 | ipc_send_reply(client, reply, (uint32_t) length); |