diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2016-07-28 13:38:02 +0000 |
---|---|---|
committer | Mykyta Holubakha <hilobakho@gmail.com> | 2016-07-28 13:38:02 +0000 |
commit | cf8ef2aea24d7ec63bc8d91acc2f928ac2c3a5b5 (patch) | |
tree | 3b33cbe8137dbc7c75f472b9642232c5970809b7 | |
parent | 178063319cc5380f0f82a1bd384bc4f6420e043c (diff) |
Initialize client's subscribed events
-rw-r--r-- | sway/ipc-server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 305b6944..326b309f 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -146,6 +146,7 @@ int ipc_handle_connection(int fd, uint32_t mask, void *data) { struct ipc_client* client = malloc(sizeof(struct ipc_client)); client->payload_length = 0; client->fd = client_fd; + client->subscribed_events = 0; client->event_source = wlc_event_loop_add_fd(client_fd, WLC_EVENT_READABLE, ipc_client_handle_readable, client); list_add(ipc_client_list, client); |