diff options
author | Cole Mickens <cole.mickens@gmail.com> | 2016-01-17 02:53:37 -0800 |
---|---|---|
committer | Cole Mickens <cole.mickens@gmail.com> | 2016-01-19 06:51:36 -0800 |
commit | 28081b76891ddbbb825dee6c202037d78aa8f164 (patch) | |
tree | 6b7412f626f5d9f10dba8920a2543dfd3c5a662e /sway/main.c | |
parent | fe241126bb8d696d45dd30fc975da022f79c9928 (diff) |
libinput
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c index e85f7269..bec6a725 100644 --- a/sway/main.c +++ b/sway/main.c @@ -17,6 +17,7 @@ #include "handlers.h" #include "ipc-client.h" #include "ipc-server.h" +#include "input.h" #include "sway.h" static bool terminate_request = false; @@ -173,6 +174,8 @@ int main(int argc, char **argv) { wlc_log_set_handler(wlc_log_handler); detect_proprietary(); + input_devices = create_list(); + /* Changing code earlier than this point requires detailed review */ /* (That code runs as root on systems without logind, and wlc_init drops to * another user.) */ @@ -208,6 +211,10 @@ int main(int argc, char **argv) { wlc_run(); } + if (input_devices) { + free(input_devices); + } + ipc_terminate(); return 0; |