aboutsummaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c7
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;