From a145430afac6e1d0fbf65250b25573fdf1b2e4fd Mon Sep 17 00:00:00 2001
From: Tudor Brindus <me@tbrindus.ca>
Date: Fri, 3 Jul 2020 00:52:25 -0400
Subject: input/pointer: add wlr_seat_pointer_wrap

It allows a compositor to do things like skip motion events on pointer
constraint unlock.

References: https://github.com/swaywm/sway/pull/5431
---
 include/wlr/types/wlr_seat.h | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'include/wlr')

diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h
index 7b47da08..332ab0d3 100644
--- a/include/wlr/types/wlr_seat.h
+++ b/include/wlr/types/wlr_seat.h
@@ -409,6 +409,12 @@ void wlr_seat_pointer_notify_enter(struct wlr_seat *wlr_seat,
  */
 void wlr_seat_pointer_notify_clear_focus(struct wlr_seat *wlr_seat);
 
+/**
+ * Warp the pointer of this seat to the given surface-local coordinates, without
+ * generating motion events.
+ */
+void wlr_seat_pointer_warp(struct wlr_seat *wlr_seat, double sx, double sy);
+
 /**
  * Notify the seat of motion over the given surface. Pass surface-local
  * coordinates where the pointer motion occurred. Defers to any grab of the
-- 
cgit v1.2.3