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 | 73605dac2ae18e2ca84a74da895c4098a1bee6f8 (diff) |
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 @@ 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 |