diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-07 09:58:32 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-07 09:58:32 -0500 |
commit | f6f63f60d6c7f9602dd1c07b45eb45a97e5b6f5a (patch) | |
tree | d1a2e6ae45c827956f4bd181aad3cdea82d32804 /sway/input/seat.c | |
parent | rename input to input-manager (diff) | |
download | sway-f6f63f60d6c7f9602dd1c07b45eb45a97e5b6f5a.tar.gz sway-f6f63f60d6c7f9602dd1c07b45eb45a97e5b6f5a.tar.zst sway-f6f63f60d6c7f9602dd1c07b45eb45a97e5b6f5a.zip |
basic input manager and seat
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 24 |
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 @@ | |||
1 | #define _XOPEN_SOURCE 700 | ||
2 | #include "sway/seat.h" | ||
3 | #include "sway/input-manager.h" | ||
4 | #include "log.h" | ||
5 | |||
6 | struct sway_seat *sway_seat_create(struct wl_display *display, | ||
7 | const char *seat_name) { | ||
8 | struct sway_seat *seat = calloc(1, sizeof(struct sway_seat)); | ||
9 | if (!seat) { | ||
10 | return NULL; | ||
11 | } | ||
12 | seat->seat = wlr_seat_create(display, seat_name); | ||
13 | return seat; | ||
14 | } | ||
15 | |||
16 | void sway_seat_add_device(struct sway_seat *seat, | ||
17 | struct wlr_input_device *device) { | ||
18 | sway_log(L_DEBUG, "input add: %s", device->name); | ||
19 | } | ||
20 | |||
21 | void sway_seat_remove_device(struct sway_seat *seat, | ||
22 | struct wlr_input_device *device) { | ||
23 | sway_log(L_DEBUG, "input remove: %s", device->name); | ||
24 | } | ||