summaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorTony Crisci <[email protected]>2017-12-07 09:58:32 -0500
committerTony Crisci <[email protected]>2017-12-07 09:58:32 -0500
commitf6f63f60d6c7f9602dd1c07b45eb45a97e5b6f5a (patch)
treed1a2e6ae45c827956f4bd181aad3cdea82d32804 /sway/input/seat.c
parent21ce20885a6a6e9e7178778513b09fea9354c603 (diff)
basic input manager and seat
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
new file mode 100644
index 00000000..f41b6dba
--- /dev/null
+++ b/sway/input/seat.c
@@ -0,0 +1,24 @@
+#define _XOPEN_SOURCE 700
+#include "sway/seat.h"
+#include "sway/input-manager.h"
+#include "log.h"
+
+struct sway_seat *sway_seat_create(struct wl_display *display,
+ const char *seat_name) {
+ struct sway_seat *seat = calloc(1, sizeof(struct sway_seat));
+ if (!seat) {
+ return NULL;
+ }
+ seat->seat = wlr_seat_create(display, seat_name);
+ return seat;
+}
+
+void sway_seat_add_device(struct sway_seat *seat,
+ struct wlr_input_device *device) {
+ sway_log(L_DEBUG, "input add: %s", device->name);
+}
+
+void sway_seat_remove_device(struct sway_seat *seat,
+ struct wlr_input_device *device) {
+ sway_log(L_DEBUG, "input remove: %s", device->name);
+}