introduce wlr_output_layout_farthest_output

Similar to wlr_output_layout_adjacent_output but will return the
one that is the farthest away from the reference in given direction.
This commit is contained in:
Armin Preiml 2018-08-25 09:14:55 +02:00
parent d7c027d3e3
commit 5617d2bd60
2 changed files with 30 additions and 4 deletions

View file

@ -126,5 +126,8 @@ enum wlr_direction {
struct wlr_output *wlr_output_layout_adjacent_output(
struct wlr_output_layout *layout, enum wlr_direction direction,
struct wlr_output *reference, double ref_lx, double ref_ly);
struct wlr_output *wlr_output_layout_farthest_output(
struct wlr_output_layout *layout, enum wlr_direction direction,
struct wlr_output *reference, double ref_lx, double ref_ly);
#endif