2017-12-07 15:58:32 +01:00
|
|
|
#ifndef _SWAY_INPUT_MANAGER_H
|
|
|
|
#define _SWAY_INPUT_MANAGER_H
|
2017-12-06 14:28:46 +01:00
|
|
|
#include <libinput.h>
|
|
|
|
#include "sway/server.h"
|
2017-12-08 14:07:47 +01:00
|
|
|
#include "sway/config.h"
|
2017-12-06 14:28:46 +01:00
|
|
|
#include "list.h"
|
|
|
|
|
2017-12-11 10:17:14 +01:00
|
|
|
extern struct input_config *current_input_config;
|
|
|
|
|
2017-12-07 13:31:49 +01:00
|
|
|
struct sway_input_manager {
|
2017-12-07 15:58:32 +01:00
|
|
|
struct wl_listener input_add;
|
|
|
|
struct wl_listener input_remove;
|
|
|
|
struct sway_server *server;
|
|
|
|
list_t *seats;
|
2017-12-06 14:28:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct input_config *new_input_config(const char* identifier);
|
|
|
|
|
|
|
|
char* libinput_dev_unique_id(struct libinput_device *dev);
|
|
|
|
|
2017-12-07 13:31:49 +01:00
|
|
|
struct sway_input_manager *sway_input_manager_create(
|
|
|
|
struct sway_server *server);
|
2017-12-06 14:28:46 +01:00
|
|
|
|
2017-12-10 17:11:47 +01:00
|
|
|
bool sway_input_manager_swayc_has_focus(struct sway_input_manager *input,
|
|
|
|
swayc_t *container);
|
|
|
|
|
2017-12-06 14:28:46 +01:00
|
|
|
#endif
|