This commit is contained in:
Cole Mickens 2016-01-17 02:53:37 -08:00
parent fe241126bb
commit 28081b7689
16 changed files with 727 additions and 3 deletions

View file

@ -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;