aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/seat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/input/seat.h')
-rw-r--r--include/sway/input/seat.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index eb674b70..ff4476d1 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -9,13 +9,15 @@
9struct sway_seat; 9struct sway_seat;
10 10
11struct sway_seatop_impl { 11struct sway_seatop_impl {
12 void (*button)(struct sway_seat *seat, uint32_t time_msec,
13 struct wlr_input_device *device, uint32_t button,
14 enum wlr_button_state state);
12 void (*motion)(struct sway_seat *seat, uint32_t time_msec); 15 void (*motion)(struct sway_seat *seat, uint32_t time_msec);
13 void (*finish)(struct sway_seat *seat, uint32_t time_msec); 16 void (*finish)(struct sway_seat *seat, uint32_t time_msec);
14 void (*abort)(struct sway_seat *seat); 17 void (*abort)(struct sway_seat *seat);
15 void (*unref)(struct sway_seat *seat, struct sway_container *con); 18 void (*unref)(struct sway_seat *seat, struct sway_container *con);
16 void (*render)(struct sway_seat *seat, struct sway_output *output, 19 void (*render)(struct sway_seat *seat, struct sway_output *output,
17 pixman_region32_t *damage); 20 pixman_region32_t *damage);
18 bool allows_events;
19}; 21};
20 22
21struct sway_seat_device { 23struct sway_seat_device {
@@ -214,6 +216,10 @@ void seat_consider_warp_to_focus(struct sway_seat *seat);
214 216
215bool seat_doing_seatop(struct sway_seat *seat); 217bool seat_doing_seatop(struct sway_seat *seat);
216 218
219void seatop_button(struct sway_seat *seat, uint32_t time_msec,
220 struct wlr_input_device *device, uint32_t button,
221 enum wlr_button_state state);
222
217void seatop_motion(struct sway_seat *seat, uint32_t time_msec); 223void seatop_motion(struct sway_seat *seat, uint32_t time_msec);
218 224
219/** 225/**
@@ -240,6 +246,4 @@ void seatop_unref(struct sway_seat *seat, struct sway_container *con);
240void seatop_render(struct sway_seat *seat, struct sway_output *output, 246void seatop_render(struct sway_seat *seat, struct sway_output *output,
241 pixman_region32_t *damage); 247 pixman_region32_t *damage);
242 248
243bool seatop_allows_events(struct sway_seat *seat);
244
245#endif 249#endif