diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-14 11:11:56 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-14 11:11:56 -0500 |
commit | 92fef27eaa0b52c9d37bdabff14ae21cd6660f46 (patch) | |
tree | 7a923bbbc233079006597d82721117bae88b6ac6 /include/sway/input/seat.h | |
parent | seat configuration (diff) | |
download | sway-92fef27eaa0b52c9d37bdabff14ae21cd6660f46.tar.gz sway-92fef27eaa0b52c9d37bdabff14ae21cd6660f46.tar.zst sway-92fef27eaa0b52c9d37bdabff14ae21cd6660f46.zip |
basic configuration
Diffstat (limited to 'include/sway/input/seat.h')
-rw-r--r-- | include/sway/input/seat.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index bd94a357..db69f83e 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -4,16 +4,25 @@ | |||
4 | #include <wlr/types/wlr_seat.h> | 4 | #include <wlr/types/wlr_seat.h> |
5 | #include "sway/input/input-manager.h" | 5 | #include "sway/input/input-manager.h" |
6 | 6 | ||
7 | struct sway_seat_device { | ||
8 | struct sway_seat *sway_seat; | ||
9 | struct sway_input_device *input_device; | ||
10 | struct sway_keyboard *keyboard; | ||
11 | struct seat_attachment_config *attachment_config; | ||
12 | struct wl_list link; // sway_seat::devices | ||
13 | }; | ||
14 | |||
7 | struct sway_seat { | 15 | struct sway_seat { |
8 | struct wlr_seat *seat; | 16 | struct wlr_seat *wlr_seat; |
17 | struct seat_config *config; | ||
9 | struct sway_cursor *cursor; | 18 | struct sway_cursor *cursor; |
10 | struct sway_input_manager *input; | 19 | struct sway_input_manager *input; |
11 | swayc_t *focus; | 20 | swayc_t *focus; |
12 | 21 | ||
13 | list_t *devices; | ||
14 | |||
15 | struct wl_listener focus_destroy; | 22 | struct wl_listener focus_destroy; |
16 | 23 | ||
24 | struct wl_list devices; // sway_seat_device::link | ||
25 | |||
17 | struct wl_list link; // input_manager::seats | 26 | struct wl_list link; // input_manager::seats |
18 | }; | 27 | }; |
19 | 28 | ||
@@ -23,6 +32,9 @@ struct sway_seat *sway_seat_create(struct sway_input_manager *input, | |||
23 | void sway_seat_add_device(struct sway_seat *seat, | 32 | void sway_seat_add_device(struct sway_seat *seat, |
24 | struct sway_input_device *device); | 33 | struct sway_input_device *device); |
25 | 34 | ||
35 | void sway_seat_configure_device(struct sway_seat *seat, | ||
36 | struct sway_input_device *device); | ||
37 | |||
26 | void sway_seat_remove_device(struct sway_seat *seat, | 38 | void sway_seat_remove_device(struct sway_seat *seat, |
27 | struct sway_input_device *device); | 39 | struct sway_input_device *device); |
28 | 40 | ||
@@ -30,4 +42,6 @@ void sway_seat_configure_xcursor(struct sway_seat *seat); | |||
30 | 42 | ||
31 | void sway_seat_set_focus(struct sway_seat *seat, swayc_t *container); | 43 | void sway_seat_set_focus(struct sway_seat *seat, swayc_t *container); |
32 | 44 | ||
45 | void sway_seat_set_config(struct sway_seat *seat, struct seat_config *seat_config); | ||
46 | |||
33 | #endif | 47 | #endif |