diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-03-16 09:18:54 +1000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-17 10:02:04 -0600 |
commit | fb3475e291ea6be94131c19fdc006e9ad873ea5f (patch) | |
tree | edf7a13eb1ee74f8efd14a8d7b5355f820a8b10a /include/sway/input | |
parent | config/output: revamp identifier/name layering (diff) | |
download | sway-fb3475e291ea6be94131c19fdc006e9ad873ea5f.tar.gz sway-fb3475e291ea6be94131c19fdc006e9ad873ea5f.tar.zst sway-fb3475e291ea6be94131c19fdc006e9ad873ea5f.zip |
Replace seatup allows_events with button callback
Diffstat (limited to 'include/sway/input')
-rw-r--r-- | include/sway/input/seat.h | 10 |
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 @@ | |||
9 | struct sway_seat; | 9 | struct sway_seat; |
10 | 10 | ||
11 | struct sway_seatop_impl { | 11 | struct 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 | ||
21 | struct sway_seat_device { | 23 | struct sway_seat_device { |
@@ -214,6 +216,10 @@ void seat_consider_warp_to_focus(struct sway_seat *seat); | |||
214 | 216 | ||
215 | bool seat_doing_seatop(struct sway_seat *seat); | 217 | bool seat_doing_seatop(struct sway_seat *seat); |
216 | 218 | ||
219 | void 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 | |||
217 | void seatop_motion(struct sway_seat *seat, uint32_t time_msec); | 223 | void 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); | |||
240 | void seatop_render(struct sway_seat *seat, struct sway_output *output, | 246 | void seatop_render(struct sway_seat *seat, struct sway_output *output, |
241 | pixman_region32_t *damage); | 247 | pixman_region32_t *damage); |
242 | 248 | ||
243 | bool seatop_allows_events(struct sway_seat *seat); | ||
244 | |||
245 | #endif | 249 | #endif |