aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/config.c1
-rw-r--r--sway/ipc-server.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c
index e55c6dea..b1b0aac9 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -345,6 +345,7 @@ static void config_defaults(struct sway_config *config) {
// Security
config->command_policies = create_list();
config->feature_policies = create_list();
+ config->ipc_policy = UINT32_MAX;
}
static int compare_modifiers(const void *left, const void *right) {
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 0442a2f9..ef741e3b 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -55,8 +55,6 @@ bool ipc_send_reply(struct ipc_client *client, const char *payload, uint32_t pay
void ipc_get_workspaces_callback(swayc_t *workspace, void *data);
void ipc_get_outputs_callback(swayc_t *container, void *data);
-#define event_mask(ev) (1 << (ev & 0x7F))
-
void ipc_init(void) {
ipc_socket = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
if (ipc_socket == -1) {