mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
libinput
This commit is contained in:
parent
fe241126bb
commit
28081b7689
16 changed files with 727 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue