diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-03-16 09:18:54 +1000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-03-16 09:18:54 +1000 |
| commit | bead4c2c22af37ff9c078bc835c9948a574eec19 (patch) | |
| tree | edf7a13eb1ee74f8efd14a8d7b5355f820a8b10a /include | |
| parent | 7ac9e12822e136eae55c922f1ef678bc5dde26c3 (diff) | |
Replace seatup allows_events with button callback
Diffstat (limited to 'include')
| -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 |
