aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/seat.h
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-12 08:29:37 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-12 08:29:37 -0500
commit163edc5a900fda58e006ed30e14ae10cc4aa13b3 (patch)
treea43e355091da4545bf9f16c63accb7d853170195 /include/sway/input/seat.h
parentinput config (diff)
downloadsway-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.h13
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
19struct 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
25struct sway_seat *sway_seat_create(struct sway_input_manager *input, 20struct sway_seat *sway_seat_create(struct sway_input_manager *input,
26 const char *seat_name); 21 const char *seat_name);
27 22
28void sway_seat_add_device(struct sway_seat *seat, 23void sway_seat_add_device(struct sway_seat *seat,
29 struct wlr_input_device *device); 24 struct sway_input_device *device);
30 25
31void sway_seat_remove_device(struct sway_seat *seat, 26void sway_seat_remove_device(struct sway_seat *seat,
32 struct wlr_input_device *device); 27 struct sway_input_device *device);
33 28
34void sway_seat_configure_xcursor(struct sway_seat *seat); 29void sway_seat_configure_xcursor(struct sway_seat *seat);
35 30