handle cursor to output edge cases

This commit is contained in:
Tony Crisci 2017-08-24 10:11:57 -04:00
parent 431e1ddeca
commit dd68f680e4
3 changed files with 74 additions and 18 deletions

View file

@ -46,4 +46,10 @@ bool wlr_output_layout_contains_point(struct wlr_output_layout *layout,
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.
*/
void wlr_output_layout_closest_boundary(struct wlr_output_layout *layout,
int x, int y, int *dest_x, int *dest_y);
#endif