summaryrefslogtreecommitdiff
path: root/include/sway/input/input-manager.h
diff options
context:
space:
mode:
authorTony Crisci <[email protected]>2017-12-12 08:29:37 -0500
committerTony Crisci <[email protected]>2017-12-12 08:29:37 -0500
commit163edc5a900fda58e006ed30e14ae10cc4aa13b3 (patch)
treea43e355091da4545bf9f16c63accb7d853170195 /include/sway/input/input-manager.h
parent462a451328a1d6f0b17d34b431d6bf3dec87c1ba (diff)
sway input device
Diffstat (limited to 'include/sway/input/input-manager.h')
-rw-r--r--include/sway/input/input-manager.h31
1 files changed, 25 insertions, 6 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h
index 78bc161f..7d7c463f 100644
--- a/include/sway/input/input-manager.h
+++ b/include/sway/input/input-manager.h
@@ -7,21 +7,40 @@
extern struct input_config *current_input_config;
+/**
+ * The global singleton input manager
+ * TODO: make me not a global
+ */
+extern struct sway_input_manager *input_manager;
+
+struct sway_input_device {
+ char *identifier;
+ struct wlr_input_device *wlr_device;
+ struct input_config *config;
+ struct sway_keyboard *keyboard; // managed by the seat
+ struct wl_list link;
+};
+
struct sway_input_manager {
struct wl_listener input_add;
struct wl_listener input_remove;
struct sway_server *server;
- list_t *seats;
+ struct wl_list devices;
+ struct wl_list seats;
};
-struct input_config *new_input_config(const char* identifier);
-
-char* libinput_dev_unique_id(struct libinput_device *dev);
-
struct sway_input_manager *sway_input_manager_create(
struct sway_server *server);
-bool sway_input_manager_swayc_has_focus(struct sway_input_manager *input,
+bool sway_input_manager_has_focus(struct sway_input_manager *input,
swayc_t *container);
+void sway_input_manager_set_focus(struct sway_input_manager *input,
+ swayc_t *container);
+
+void sway_input_manager_configure_xcursor(struct sway_input_manager *input);
+
+void sway_input_manager_apply_config(struct sway_input_manager *input,
+ struct input_config *config);
+
#endif