aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar hrdl <31923882+hrdl-github@users.noreply.github.com>2023-05-04 01:13:33 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2023-05-04 13:30:57 +0200
commite8f7551e46052a8df04b630bf06565ca77f830fb (patch)
tree00a8dd81570767262252188f183fac647bfa253b /include
parentDon't crash if there is no damage during render (diff)
downloadsway-e8f7551e46052a8df04b630bf06565ca77f830fb.tar.gz
sway-e8f7551e46052a8df04b630bf06565ca77f830fb.tar.zst
sway-e8f7551e46052a8df04b630bf06565ca77f830fb.zip
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 {
53 53
54 struct wl_listener touch_down; 54 struct wl_listener touch_down;
55 struct wl_listener touch_up; 55 struct wl_listener touch_up;
56 struct wl_listener touch_cancel;
56 struct wl_listener touch_motion; 57 struct wl_listener touch_motion;
57 struct wl_listener touch_frame; 58 struct wl_listener touch_frame;
58 bool simulating_pointer_from_touch; 59 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 {
44 struct wlr_touch_up_event *event); 44 struct wlr_touch_up_event *event);
45 void (*touch_down)(struct sway_seat *seat, 45 void (*touch_down)(struct sway_seat *seat,
46 struct wlr_touch_down_event *event, double lx, double ly); 46 struct wlr_touch_down_event *event, double lx, double ly);
47 void (*touch_cancel)(struct sway_seat *seat,
48 struct wlr_touch_cancel_event *event);
47 void (*tablet_tool_motion)(struct sway_seat *seat, 49 void (*tablet_tool_motion)(struct sway_seat *seat,
48 struct sway_tablet_tool *tool, uint32_t time_msec); 50 struct sway_tablet_tool *tool, uint32_t time_msec);
49 void (*tablet_tool_tip)(struct sway_seat *seat, struct sway_tablet_tool *tool, 51 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,
338void seatop_touch_down(struct sway_seat *seat, 340void seatop_touch_down(struct sway_seat *seat,
339 struct wlr_touch_down_event *event, double lx, double ly); 341 struct wlr_touch_down_event *event, double lx, double ly);
340 342
343void seatop_touch_cancel(struct sway_seat *seat,
344 struct wlr_touch_cancel_event *event);
345
341void seatop_rebase(struct sway_seat *seat, uint32_t time_msec); 346void seatop_rebase(struct sway_seat *seat, uint32_t time_msec);
342 347
343/** 348/**