input skeleton

This commit is contained in:
Tony Crisci 2017-12-06 08:28:46 -05:00
parent 3fe64482bb
commit 338a0399f8
4 changed files with 25 additions and 0 deletions

View file

@ -2,6 +2,7 @@ sway_sources = files(
'main.c',
'server.c',
'commands.c',
'input/input.c',
'commands/exit.c',
'commands/exec.c',
'commands/exec_always.c',
@ -25,6 +26,7 @@ sway_deps = [
wlroots,
libcap,
math,
libinput,
]
executable(

View file

@ -11,6 +11,7 @@
// TODO WLR: make Xwayland optional
#include <wlr/xwayland.h>
#include "sway/server.h"
#include "sway/input.h"
#include "log.h"
bool server_init(struct sway_server *server) {
@ -58,6 +59,9 @@ bool server_init(struct sway_server *server) {
wlr_backend_destroy(server->backend);
return false;
}
server->input = sway_input_create(server);
return true;
}