aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/input/keyboard.h13
-rw-r--r--include/sway/input/seat.h2
2 files changed, 15 insertions, 0 deletions
diff --git a/include/sway/input/keyboard.h b/include/sway/input/keyboard.h
new file mode 100644
index 00000000..2e04065c
--- /dev/null
+++ b/include/sway/input/keyboard.h
@@ -0,0 +1,13 @@
+#include "sway/input/seat.h"
+
+struct sway_keyboard {
+ struct sway_seat *seat;
+ struct wlr_input_device *device;
+ struct wl_list link; // sway_seat::keyboards
+
+ struct wl_listener keyboard_key;
+ struct wl_listener keyboard_modifiers;
+};
+
+struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat,
+ struct wlr_input_device *device);
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 964c0f7b..a0c6ab07 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -10,6 +10,8 @@ struct sway_seat {
struct sway_input_manager *input;
swayc_t *focus;
+ struct wl_list keyboards;
+
struct wl_listener focus_destroy;
};