From fb3475e291ea6be94131c19fdc006e9ad873ea5f Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sat, 16 Mar 2019 09:18:54 +1000 Subject: Replace seatup allows_events with button callback --- include/sway/input/seat.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include') 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 @@ struct sway_seat; struct sway_seatop_impl { + void (*button)(struct sway_seat *seat, uint32_t time_msec, + struct wlr_input_device *device, uint32_t button, + enum wlr_button_state state); void (*motion)(struct sway_seat *seat, uint32_t time_msec); void (*finish)(struct sway_seat *seat, uint32_t time_msec); void (*abort)(struct sway_seat *seat); void (*unref)(struct sway_seat *seat, struct sway_container *con); void (*render)(struct sway_seat *seat, struct sway_output *output, pixman_region32_t *damage); - bool allows_events; }; struct sway_seat_device { @@ -214,6 +216,10 @@ void seat_consider_warp_to_focus(struct sway_seat *seat); bool seat_doing_seatop(struct sway_seat *seat); +void seatop_button(struct sway_seat *seat, uint32_t time_msec, + struct wlr_input_device *device, uint32_t button, + enum wlr_button_state state); + void seatop_motion(struct sway_seat *seat, uint32_t time_msec); /** @@ -240,6 +246,4 @@ void seatop_unref(struct sway_seat *seat, struct sway_container *con); void seatop_render(struct sway_seat *seat, struct sway_output *output, pixman_region32_t *damage); -bool seatop_allows_events(struct sway_seat *seat); - #endif -- cgit v1.2.3