aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/seat.h
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-10 11:11:47 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-10 11:11:47 -0500
commit21626e8153490bf155e812644454fe9610491ffd (patch)
tree5b881dcc23dfdae692f58aaf1a9677b5d1395f61 /include/sway/input/seat.h
parentMerge branch 'wlroots' into feature/input (diff)
downloadsway-21626e8153490bf155e812644454fe9610491ffd.tar.gz
sway-21626e8153490bf155e812644454fe9610491ffd.tar.zst
sway-21626e8153490bf155e812644454fe9610491ffd.zip
seat focus on button press
Diffstat (limited to 'include/sway/input/seat.h')
-rw-r--r--include/sway/input/seat.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index f7f8a1bb..964c0f7b 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -7,9 +7,13 @@
7struct sway_seat { 7struct sway_seat {
8 struct wlr_seat *seat; 8 struct wlr_seat *seat;
9 struct sway_cursor *cursor; 9 struct sway_cursor *cursor;
10 struct sway_input_manager *input;
11 swayc_t *focus;
12
13 struct wl_listener focus_destroy;
10}; 14};
11 15
12struct sway_seat *sway_seat_create(struct wl_display *display, 16struct sway_seat *sway_seat_create(struct sway_input_manager *input,
13 const char *seat_name); 17 const char *seat_name);
14 18
15void sway_seat_add_device(struct sway_seat *seat, 19void sway_seat_add_device(struct sway_seat *seat,
@@ -20,4 +24,6 @@ void sway_seat_remove_device(struct sway_seat *seat,
20 24
21void sway_seat_configure_xcursor(struct sway_seat *seat); 25void sway_seat_configure_xcursor(struct sway_seat *seat);
22 26
27void sway_seat_set_focus(struct sway_seat *seat, swayc_t *container);
28
23#endif 29#endif