aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/ipc.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-02-20 06:11:43 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-02-20 06:11:56 -0500
commitb10721b89e3f3992b2476c55237a25dbeb0bce46 (patch)
tree8898271a6b93b848bd5e75c6f037a6140d119d1b /sway/commands/ipc.c
parentRevise IPC security configuration (diff)
downloadsway-b10721b89e3f3992b2476c55237a25dbeb0bce46.tar.gz
sway-b10721b89e3f3992b2476c55237a25dbeb0bce46.tar.zst
sway-b10721b89e3f3992b2476c55237a25dbeb0bce46.zip
Add initial support code for new IPC security
Diffstat (limited to 'sway/commands/ipc.c')
-rw-r--r--sway/commands/ipc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sway/commands/ipc.c b/sway/commands/ipc.c
index 113a975b..44d7a010 100644
--- a/sway/commands/ipc.c
+++ b/sway/commands/ipc.c
@@ -86,10 +86,10 @@ struct cmd_results *cmd_ipc_cmd(int argc, char **argv) {
86 } 86 }
87 87
88 if (enabled) { 88 if (enabled) {
89 config->ipc_policy |= type; 89 //config->ipc_policy |= type;
90 sway_log(L_DEBUG, "Enabled IPC %s feature", argv[-1]); 90 sway_log(L_DEBUG, "Enabled IPC %s feature %d", argv[-1], (int)type);
91 } else { 91 } else {
92 config->ipc_policy &= ~type; 92 //config->ipc_policy &= ~type;
93 sway_log(L_DEBUG, "Disabled IPC %s feature", argv[-1]); 93 sway_log(L_DEBUG, "Disabled IPC %s feature", argv[-1]);
94 } 94 }
95 95
@@ -134,10 +134,10 @@ struct cmd_results *cmd_ipc_event_cmd(int argc, char **argv) {
134 } 134 }
135 135
136 if (enabled) { 136 if (enabled) {
137 config->ipc_policy |= type; 137 //config->ipc_policy |= type;
138 sway_log(L_DEBUG, "Enabled IPC %s event", argv[-1]); 138 sway_log(L_DEBUG, "Enabled IPC %s event %d", argv[-1], (int)type);
139 } else { 139 } else {
140 config->ipc_policy &= ~type; 140 //config->ipc_policy &= ~type;
141 sway_log(L_DEBUG, "Disabled IPC %s event", argv[-1]); 141 sway_log(L_DEBUG, "Disabled IPC %s event", argv[-1]);
142 } 142 }
143 143