diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-12 08:29:37 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-12 08:29:37 -0500 |
commit | 163edc5a900fda58e006ed30e14ae10cc4aa13b3 (patch) | |
tree | a43e355091da4545bf9f16c63accb7d853170195 /include/sway/input/seat.h | |
parent | input config (diff) | |
download | sway-163edc5a900fda58e006ed30e14ae10cc4aa13b3.tar.gz sway-163edc5a900fda58e006ed30e14ae10cc4aa13b3.tar.zst sway-163edc5a900fda58e006ed30e14ae10cc4aa13b3.zip |
sway input device
Diffstat (limited to 'include/sway/input/seat.h')
-rw-r--r-- | include/sway/input/seat.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index 5455601e..bd94a357 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -10,26 +10,21 @@ struct sway_seat { | |||
10 | struct sway_input_manager *input; | 10 | struct sway_input_manager *input; |
11 | swayc_t *focus; | 11 | swayc_t *focus; |
12 | 12 | ||
13 | struct wl_list keyboards; // sway_keyboard::link | 13 | list_t *devices; |
14 | struct wl_list pointers; // sway_pointer::link | ||
15 | 14 | ||
16 | struct wl_listener focus_destroy; | 15 | struct wl_listener focus_destroy; |
17 | }; | ||
18 | 16 | ||
19 | struct sway_pointer { | 17 | struct wl_list link; // input_manager::seats |
20 | struct sway_seat *seat; | ||
21 | struct wlr_input_device *device; | ||
22 | struct wl_list link; | ||
23 | }; | 18 | }; |
24 | 19 | ||
25 | struct sway_seat *sway_seat_create(struct sway_input_manager *input, | 20 | struct sway_seat *sway_seat_create(struct sway_input_manager *input, |
26 | const char *seat_name); | 21 | const char *seat_name); |
27 | 22 | ||
28 | void sway_seat_add_device(struct sway_seat *seat, | 23 | void sway_seat_add_device(struct sway_seat *seat, |
29 | struct wlr_input_device *device); | 24 | struct sway_input_device *device); |
30 | 25 | ||
31 | void sway_seat_remove_device(struct sway_seat *seat, | 26 | void sway_seat_remove_device(struct sway_seat *seat, |
32 | struct wlr_input_device *device); | 27 | struct sway_input_device *device); |
33 | 28 | ||
34 | void sway_seat_configure_xcursor(struct sway_seat *seat); | 29 | void sway_seat_configure_xcursor(struct sway_seat *seat); |
35 | 30 | ||