aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-24 10:42:05 -0400
committerTony Crisci <tony@dubstepdish.com>2017-08-26 08:32:11 -0400
commit0cba06dcef791d8dc1702270cae2915936380a46 (patch)
treeb682374dd810c53f146a68798fb1160665fe9b8b /include/wlr
parentdd68f680e4bda23a723fc68aca9586ae3d3a018a (diff)
implement wlr_cursor_warp
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_cursor.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_cursor.h b/include/wlr/types/wlr_cursor.h
index 1ea089ef..380d8a6f 100644
--- a/include/wlr/types/wlr_cursor.h
+++ b/include/wlr/types/wlr_cursor.h
@@ -28,8 +28,17 @@ void wlr_cursor_destroy(struct wlr_cursor *cur);
void wlr_cursor_set_xcursor(struct wlr_cursor *cur, struct wlr_xcursor *xcur);
-void wlr_cursor_warp(struct wlr_cursor *cur, double x, double y);
+/**
+ * Warp the cursor to the given x and y in layout coordinates. If x and y are
+ * out of the layout boundaries or constraints, no warp will happen.
+ *
+ * Returns true when the mouse warp was successful.
+ */
+bool wlr_cursor_warp(struct wlr_cursor *cur, double x, double y);
+/**
+ * Move the cursor in the direction of the given x and y coordinates.
+ */
void wlr_cursor_move(struct wlr_cursor *cur, double delta_x, double delta_y);
/**