diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-12-02 16:08:45 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-12-02 16:08:45 -0500 |
commit | e9e1a6a409a276310e1015763184641547e7823c (patch) | |
tree | e3133eedaa7aa43051c2ce849e2b205d763be83a /sway | |
parent | 0a1b211e09e9fc82885eaf12c0a3658d36c0bec0 (diff) | |
download | sway-e9e1a6a409a276310e1015763184641547e7823c.tar.xz |
Add IPC policy to config
Also reduces enum abuse, cc @minus7
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config.c | 1 | ||||
-rw-r--r-- | sway/ipc-server.c | 2 |
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) { |