sway/include/sway/input/input-manager.h

28 lines
659 B
C
Raw Normal View History

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