From 28081b76891ddbbb825dee6c202037d78aa8f164 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Sun, 17 Jan 2016 02:53:37 -0800 Subject: libinput --- sway/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sway/main.c') 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; -- cgit v1.2.3