From 4666d1785bfb6635e6e8604de383c91714bceebc Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sat, 21 Aug 2021 16:04:08 +0200 Subject: Implement seatop_touch Atm we got issue with the touch position sent to the clients. While holding contact, leaving the initial container will continue to send motion event to the client but with the new local position from the new container. This seatop goal is to send the position of the touch event, relatively to the initial container layout position. --- include/sway/input/cursor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/sway/input/cursor.h') diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h index 828ac370..4a3774d9 100644 --- a/include/sway/input/cursor.h +++ b/include/sway/input/cursor.h @@ -108,6 +108,10 @@ void cursor_unhide(struct sway_cursor *cursor); int cursor_get_timeout(struct sway_cursor *cursor); void cursor_notify_key_press(struct sway_cursor *cursor); +void pointer_motion(struct sway_cursor *cursor, uint32_t time_msec, + struct wlr_input_device *device, double dx, double dy, + double dx_unaccel, double dy_unaccel); + void dispatch_cursor_button(struct sway_cursor *cursor, struct wlr_input_device *device, uint32_t time_msec, uint32_t button, enum wlr_button_state state); -- cgit v1.2.3