mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
config modes
This commit is contained in:
parent
afe9cf0be0
commit
71af5b7dde
8 changed files with 261 additions and 232 deletions
|
|
@ -198,7 +198,7 @@ void ipc_client_handle_command(struct ipc_client *client) {
|
|||
case IPC_COMMAND:
|
||||
{
|
||||
buf[client->payload_length] = '\0';
|
||||
bool success = handle_command(config, buf);
|
||||
bool success = handle_command(buf);
|
||||
char reply[64];
|
||||
int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false");
|
||||
ipc_send_reply(client, reply, (uint32_t) length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue