aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-24 12:30:34 -0400
committerTony Crisci <tony@dubstepdish.com>2017-08-26 08:32:11 -0400
commit13e895d943eca5e86f68230c5ca503090866aafc (patch)
tree83c04062cb1e114907caf7eb6d98aedccea41146 /include/wlr
parenta4810203ccfcdba2460331b46d7be4d9535f904a (diff)
implement wlr_cursor_map_to_output
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output_layout.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h
index 9094f02f..144c2d5a 100644
--- a/include/wlr/types/wlr_output_layout.h
+++ b/include/wlr/types/wlr_output_layout.h
@@ -47,9 +47,12 @@ bool wlr_output_layout_intersects(struct wlr_output_layout *layout,
struct wlr_output *reference, int x1, int y1, int x2, int y2);
/**
- * Get the closest boundary point of this layout from the given point.
+ * Get the closest boundary point of this layout from the given point from the
+ * reference output. If reference is NULL, gets the closest boundary point from
+ * the entire layout.
*/
void wlr_output_layout_closest_boundary(struct wlr_output_layout *layout,
- int x, int y, int *dest_x, int *dest_y);
+ struct wlr_output *reference, double x, double y, double *dest_x,
+ double *dest_y);
#endif