aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorhrdl <31923882+hrdl-github@users.noreply.github.com>2023-05-04 01:13:33 +0200
committerSimon Ser <contact@emersion.fr>2023-05-04 13:30:57 +0200
commite8f7551e46052a8df04b630bf06565ca77f830fb (patch)
tree00a8dd81570767262252188f183fac647bfa253b /include
parentdb7638a0e515635e3aa36fa8bef58f3e44b177d8 (diff)
Add support for touch cancel events
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/cursor.h1
-rw-r--r--include/sway/input/seat.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index 4a3774d9..c7da8829 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -53,6 +53,7 @@ struct sway_cursor {
struct wl_listener touch_down;
struct wl_listener touch_up;
+ struct wl_listener touch_cancel;
struct wl_listener touch_motion;
struct wl_listener touch_frame;
bool simulating_pointer_from_touch;
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 6d29cf3b..5ef8e2f3 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -44,6 +44,8 @@ struct sway_seatop_impl {
struct wlr_touch_up_event *event);
void (*touch_down)(struct sway_seat *seat,
struct wlr_touch_down_event *event, double lx, double ly);
+ void (*touch_cancel)(struct sway_seat *seat,
+ struct wlr_touch_cancel_event *event);
void (*tablet_tool_motion)(struct sway_seat *seat,
struct sway_tablet_tool *tool, uint32_t time_msec);
void (*tablet_tool_tip)(struct sway_seat *seat, struct sway_tablet_tool *tool,
@@ -338,6 +340,9 @@ void seatop_touch_up(struct sway_seat *seat,
void seatop_touch_down(struct sway_seat *seat,
struct wlr_touch_down_event *event, double lx, double ly);
+void seatop_touch_cancel(struct sway_seat *seat,
+ struct wlr_touch_cancel_event *event);
+
void seatop_rebase(struct sway_seat *seat, uint32_t time_msec);
/**