summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2019-03-16 09:18:54 +1000
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-03-17 10:02:04 -0600
commitfb3475e291ea6be94131c19fdc006e9ad873ea5f (patch)
treeedf7a13eb1ee74f8efd14a8d7b5355f820a8b10a /include
parentconfig/output: revamp identifier/name layering (diff)
downloadsway-fb3475e291ea6be94131c19fdc006e9ad873ea5f.tar.gz
sway-fb3475e291ea6be94131c19fdc006e9ad873ea5f.tar.zst
sway-fb3475e291ea6be94131c19fdc006e9ad873ea5f.zip
Replace seatup allows_events with button callback
Diffstat (limited to 'include')
-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