diff options
author | hrdl <31923882+hrdl-github@users.noreply.github.com> | 2023-05-04 01:13:33 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-04 13:30:57 +0200 |
commit | e8f7551e46052a8df04b630bf06565ca77f830fb (patch) | |
tree | 00a8dd81570767262252188f183fac647bfa253b /sway/input/seat.c | |
parent | Don't crash if there is no damage during render (diff) | |
download | sway-e8f7551e46052a8df04b630bf06565ca77f830fb.tar.gz sway-e8f7551e46052a8df04b630bf06565ca77f830fb.tar.zst sway-e8f7551e46052a8df04b630bf06565ca77f830fb.zip |
Add support for touch cancel events
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 6b95e46a..bcb89b48 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -1638,6 +1638,12 @@ void seatop_touch_down(struct sway_seat *seat, struct wlr_touch_down_event *even | |||
1638 | } | 1638 | } |
1639 | } | 1639 | } |
1640 | 1640 | ||
1641 | void seatop_touch_cancel(struct sway_seat *seat, struct wlr_touch_cancel_event *event) { | ||
1642 | if (seat->seatop_impl->touch_cancel) { | ||
1643 | seat->seatop_impl->touch_cancel(seat, event); | ||
1644 | } | ||
1645 | } | ||
1646 | |||
1641 | void seatop_tablet_tool_tip(struct sway_seat *seat, | 1647 | void seatop_tablet_tool_tip(struct sway_seat *seat, |
1642 | struct sway_tablet_tool *tool, uint32_t time_msec, | 1648 | struct sway_tablet_tool *tool, uint32_t time_msec, |
1643 | enum wlr_tablet_tool_tip_state state) { | 1649 | enum wlr_tablet_tool_tip_state state) { |