mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Enforce command policies
This commit is contained in:
parent
f23880b1fd
commit
39cf9a82f7
6 changed files with 39 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue