Establish sway input submodule

This commit is contained in:
Drew DeVault 2017-10-22 11:38:30 -04:00
parent 7414d92327
commit 0f45fad18c
6 changed files with 25 additions and 15 deletions

View file

@ -1,18 +1,19 @@
#ifndef _SWAY_INPUT_H
#define _SWAY_INPUT_H
#include <libinput.h>
#include "sway/server.h"
#include "config.h"
#include "list.h"
struct sway_input {
list_t *input_devices;
};
struct input_config *new_input_config(const char* identifier);
char* libinput_dev_unique_id(struct libinput_device *dev);
/**
* Global input device list.
*/
extern list_t *input_devices;
struct sway_input *sway_input_create(struct sway_server *server);
/**
* Pointer used when reading input blocked.

View file

@ -10,9 +10,6 @@
#include <wlr/xwayland.h>
struct sway_server {
// TODO WLR
//struct roots_input *input;
struct wl_display *wl_display;
struct wl_event_loop *wl_event_loop;
@ -20,6 +17,8 @@ struct sway_server {
struct wlr_renderer *renderer;
struct wlr_data_device_manager *data_device_manager;
struct sway_input *input;
};
bool server_init(struct sway_server *server);